Expand description
Flexible datetime (de)serialization for Python compatibility.
Python’s datetime.isoformat() produces strings like 2024-06-15T10:30:00
(no timezone), while chrono::DateTime<Utc> expects RFC3339 with Z or offset.
This module handles both formats.
Modules§
- option
- Module for optional datetime fields.
Functions§
- deserialize
- Deserialize a datetime string that may or may not have timezone info.
- parse_
flexible_ datetime - Parse a datetime string flexibly, handling:
- serialize
- Serialize a
DateTime<Utc>as ISO 8601 string.