介绍日历星期的标准定义,并用 Python 的 datetime 和 calendar 模块实现周数、起止时间等相关计算。
说明 pytz 时区对象直接作为 tzinfo 会导致时间偏移,并给出正确使用 localize 与 astimezone 的方法。