datetime — Basic date and time types — Python 3.16.0a0 documentation

docs.python.org

Tin mới

zoneinfo — IANA time zone support

Python Module Index

3.16.0a0 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.

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().

NotImplementedError

Return offset of local time from UTC, as a timedelta object that is positive east of UTC. If local time is west of UTC, this should be negative.

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.