Expand description
Utils crate where common behaviour for computing dates are shared
Functionsยง
- get_
datetime_ and_ unit_ from_ units - get_
hms_ from_ timestamp - Converts a timestamp into hours, minutes, and seconds.
- get_
timestamp_ from_ hms - Converts the given hour, minute, and second values into a timestamp.
- get_
timestamp_ from_ ymd - Calculates the timestamp from the given year, month, and day.
- get_
ymd_ hms_ from_ timestamp - Converts a timestamp to the year, month, day, hour, minute, and second components.
- is_
leap_ gregorian - Determines if a given year is a leap year according to the Gregorian calendar.
- is_
leap_ julian - Determines if a given year is a leap year in the Julian calendar.
- normalize_
nanoseconds - Normalize the given number of nanoseconds into seconds and remaining nanoseconds.
- unit_
to_ encode - Converts a unit of time to its corresponding encoded value.