Python 计算日历星期

介绍日历星期的标准定义,并用 Python 的 datetime 和 calendar 模块实现周数、起止时间等相关计算。

 2020年11月12日 · 1 分钟 · 393 字

pytz 中的时间偏移问题

说明 pytz 时区对象直接作为 tzinfo 会导致时间偏移,并给出正确使用 localize 与 astimezone 的方法。

 2019年3月16日 · 1 分钟 · 362 字