On Sat, Jul 23, 2022 at 5:11 AM Sven Schreiber <svetosch(a)gmx.net> wrote:
Am 22.07.2022 um 23:11 schrieb Cottrell, Allin:
>
> Unix-type systems treat this epoch time as a signed integer, so
> negative offsets relative to midnight of 1969-12-31/1970-01-01 can be
> represented. MS Windows treats it as an unsigned integer and so cannot
> handle prior dates. If you think about it for a moment, it's clear
> that figuring the offset in seconds of a given date from a given
> benchmark (the aforementioned start of 1970) is not at all trivial --
> think of leap seconds, never mind leap years. So I doubt there's
> anything we can do about this other than post a warning.
Would it be an option to return NA instead of -1 in those cases (if I've
understood correctly what's happening) ?
Good idea. That's now in git. I've also updated the new English help
text for strptime() to reflect this.
Allin