Expand description
Utils crate where common behaviour for computing dates are shared
Functions
- Converts a timestamp into hours, minutes, and seconds.
- Converts the given hour, minute, and second values into a timestamp.
- Calculates the timestamp from the given year, month, and day.
- Converts a timestamp to the year, month, day, hour, minute, and second components.
- Determines if a given year is a leap year according to the Gregorian calendar.
- Determines if a given year is a leap year in the Julian calendar.
- Normalize the given number of nanoseconds into seconds and remaining nanoseconds.
- Converts a unit of time to its corresponding encoded value.