datetime#
Date, time, duration, and timestamp helpers.
Functions#
|
Parse plain, compact, or ISO 8601 duration strings. |
|
Parse an ISO/RFC 3339 datetime into a POSIX timestamp. |
|
Normalize a seconds-or-milliseconds POSIX timestamp to seconds. |
Attributes#
- COMPACT_DURATION_UNITS#
- MAX_SECONDS_TIMESTAMP = 253402300799#
- _COMPACT_DURATION_RE#
- _ISO8601_DURATION_RE#
- _DATE_ONLY_RE#
- _COMPACT_DATE_ONLY_RE#
- parse_duration(value: str) datetime.timedelta | None#
Parse plain, compact, or ISO 8601 duration strings.