Expand description
A Rust crate for parsing human-readable relative time strings and human-readable datetime strings. The function supports the following formats for time:
- ISO formats
- timezone offsets, e.g., “UTC-0100”
- unix timestamps, e.g., “@12”
- relative time to now, e.g. “+1 hour”
Structs§
- Date
Parts - Extended
Date Time - A date-time representation that supports years beyond Jiff’s civil range.
- Time
Parts
Enums§
- Parse
Date Time Error - Parsed
Date Time - Parsed datetime output.
Constants§
- GNU_
MAX_ YEAR - Maximum year accepted by GNU
date.
Functions§
- parse_
datetime - Parses a time string and returns a
ParsedDateTimerepresenting the absolute time of the string. - parse_
datetime_ at_ date - Parses a time string at a specific date and returns a
ParsedDateTimerepresenting the absolute time of the string.