Expand description
Time parsing, formatting, and conversion functions.
Note: Calculations and conversions may not be quite correct as it seems there is currently no Rust library that fully implements leap seconds.
Functions§
- format_
timestamp - Formats an epoch timestamp in seconds to “YYYY-MM-DD HH:MM” in UTC.
- is_
leap_ year - Determines if a given year is a leap year in the proleptic Gregorian calendar.
- parse_
time_ spec - Parses an absolute epoch timestamp or relative duration like “7d”, “24h”, “60m”.