hestia_earth.utils.date.diff_in_years¶
-
hestia_earth.utils.date.diff_in_years(from_date, to_date)[source]¶ Return the difference in years between two dates.
- Parameters
from_date (str) – Date in string format
to_date (
str) – Date in string format
- Returns
The difference of years between from and to dates with a precision of 1.
- Return type
float