Skip to main content

years_between

Function years_between 

Source
pub fn years_between(a_nanos: i64, b_nanos: i64) -> i64
Expand description

The number of complete calendar years from a to b (signed) — complete 12-month periods, so 2020-06-01 → 2024-03-01 is 3 (the fourth year, ending 2024-06-01, has not arrived).