- datetime — Basic date and time types — Python 3. 13. 5 documentation
Only one concrete tzinfo class, the timezone class, is supplied by the datetime module The timezone class can represent simple time zones with fixed offsets from UTC, such as UTC itself or North American EST and EDT time zones Supporting time zones at deeper levels of detail is up to the application
- zoneinfo — IANA time zone support — Python 3. 13. 5 documentation
ZoneInfo is a concrete implementation of the datetime tzinfo abstract base class, and is intended to be attached to tzinfo, either via the constructor, the datetime replace method or datetime astimezone:
- time — Time access and conversions — Python 3. 13. 5 documentation
time timezone ¶ The offset of the local (non-DST) timezone, in seconds west of UTC (negative in most of Western Europe, positive in the US, zero in the UK) See note below time tzname ¶ A tuple of two strings: the first is the name of the local non-DST timezone, the second is the name of the local DST timezone
- 内置异常 — Python 3. 9. 22 文档
一个类型的内存布局属于实现细节并可能随着 Python 版本升级而改变,导致在未来可能产生新的冲突。 因此,建议完全避免子类化多个异常类型。 基类 ¶
|