Overview of Chrono timezone-aware date and time handling
mainChrono provides functionality for correct operations on dates and times using the proleptic Gregorian calendar. Key features include:
- Timezone Awareness: The
DateTimetype is timezone-aware by default, while separate timezone-naive types are also available. - Safety: Operations that might result in invalid or ambiguous dates/times return
OptionorMappedLocalTime. - Formatting: Supports configurable parsing and formatting using an
strftime-inspired syntax. - OS Integration: The
Localtimezone type integrates with the current timezone of the operating system. - Efficiency: Types and operations are designed for reasonable efficiency.
Note on Timezone Data: To keep binary sizes small, timezone data is not included by default. For full timezone support, use the companion crates chrono-tz or tzfile.