Crate ctb_formats_time

Crate ctb_formats_time 

Source
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”.