mpas_analysis.shared.timekeeping.utility.days_to_datetime
- mpas_analysis.shared.timekeeping.utility.days_to_datetime(days, calendar='gregorian', referenceDate='0001-01-01')[source]
Covert days to
datetime.datetime
objects given a reference date and an MPAS calendar (either ‘gregorian’ or ‘noleap’).- Parameters:
- Returns:
datetime (datetime.datetime (or array-like of datetimes)) – The days since
referenceDate
on the givencalendar
.- Raises:
ValueError – If an invalid
days
,referenceDate
orcalendar
is supplied.