Open aekiss opened 4 years ago
That library doesn't seem to support any calendar type but iso variant of gregorian
Darn.
I think that this library is intended to have similar functionality to the Python module of the same name. I think it is difficult to find date handling libraries that support different calendar types.
libaccessom2 does a workaround to support noleap.
I just noticed that the Gregorian definition of leap years is hard-coded in datetime-fortran: https://github.com/wavebitscientific/datetime-fortran/blob/master/src/lib/mod_datetime.f90#L1053
I guess this would prohibit the use of different calendars (e.g. noleap) - could this cause any problems, e.g. with RYF?
Note that this also means a proleptic Gregorian calendar is applied prior to the year 1582 (see https://github.com/COSIMA/access-om2/issues/117).