Expand description
Temporal utilities for timezone handling
Functions§
- parse_
rfc3339_ with_ timezone - Parse RFC3339 timestamp with strict timezone validation.
- parse_
timestamp_ flexible - Parse a timestamp accepting either RFC3339 (with timezone) or a naive
ISO 8601 datetime without timezone. Naive datetimes are interpreted as
the host’s local timezone and returned with that offset attached, so
downstream code always works on
DateTime<FixedOffset>with explicit timezone information. - parse_
timestamp_ flexible_ str - Same as
parse_timestamp_flexiblebut returns the raw error string so callers using their own error types (e.g.DetectionError) can wrap it. - validate_
timezone_ present - Validate that timezone information is present