datetime — Basic date and time types — Python 3.14.7 documentation

docs.python.org

Tin mới

zoneinfo — IANA time zone support

Python Module Index

3.14.7 Documentation

The Python Standard Library

calendar: Functions for working with calendars, including some emulation of the Unix cal program.

Concrete time zones representing the IANA time zone database.

time: Time access and conversions.

Concrete time zones representing the IANA time zone database.

static type checkers

Third-party library that introduces distinct static types to for example, allow static type checkers to differentiate between naive and aware datetimes.

pickle: Convert Python objects to streams of bytes and back.

Objects of these types support efficient pickling via the pickle module.

DeprecationWarning

formatted string literals

Same as date.strftime(). This makes it possible to specify a format string for a date object in formatted string literals and when using str.format(). See also strftime() and strptime() behavior and date.isoformat().

tzinfo_examples.py

This is an abstract base class, meaning that this class should not be instantiated directly. Define a subclass of tzinfo to capture information about a particular time zone.