Skip to main content

Crate low_level_date

Crate low_level_date 

Source
Expand description

Low-Level Date Algorithms Rust implementation from https://howardhinnant.github.io/date_algorithms.html

Calculates the date from std::time::SystemTime only

as described in the great article by Howard Hinnant

Functions§

civil_from_days
Calculates the civil date from days
date_from_duration
date_from_timestamp
date_now
Convenience methode to calculate the cicil date from SystemTime::now
days_from_civil
Calculates the days ellapsed from a given date

Type Aliases§

Date
Shorter type for result tuple (year, month, day, hours, minutes, seconds, milliseconds)