#日期时间
共 1 篇文章
Python 比较时间报 can't compare offset-naive and offset-aware datetimes
带偏移的时间与 datetime.now() 比较时报 TypeError,使用 aware UTC 当前时间,区分 astimezone 转换和 replace 标记,避免无声改变时间含义。
共 1 篇文章
带偏移的时间与 datetime.now() 比较时报 TypeError,使用 aware UTC 当前时间,区分 astimezone 转换和 replace 标记,避免无声改变时间含义。