date-differencer 0.1.4

Calculate the time interval between two `DateTime` instances and output the result in years plus months plus days plus hours plus minutes plus seconds plus nanoseconds (instead of representing the same duration in different units). This library is useful for lifespan check and age calculation.
Documentation
1
2
3
4
pub(crate) const SECOND_NANOSECONDS: u64 = 1000000000;
pub(crate) const MINUTE_NANOSECONDS: u64 = 60 * SECOND_NANOSECONDS;
pub(crate) const HOUR_NANOSECONDS: u64 = 60 * MINUTE_NANOSECONDS;
pub(crate) const DAY_NANOSECONDS: u64 = 24 * HOUR_NANOSECONDS;