Closed bgctw closed 4 years ago
Currently fConvertTimeToPosix relies on strptime to return NA for implausible doy (day-of-year). This causes a warning or worse on some architectures.
fConvertTimeToPosix
strptime
We should explicitly check for leapyears and compare each doy exceeding 365 or 366 respectively before calling strptime.
fixed by commit 62fe8cb9cf814fd66037465c3d43fe2682eff3f3
Currently
fConvertTimeToPosix
relies onstrptime
to return NA for implausible doy (day-of-year). This causes a warning or worse on some architectures.We should explicitly check for leapyears and compare each doy exceeding 365 or 366 respectively before calling
strptime
.