This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Win32: re-work FILETIME <=> time_t conversions
authorTony Cook <tony@develop-help.com>
Wed, 14 Oct 2020 23:38:05 +0000 (10:38 +1100)
committerTony Cook <tony@develop-help.com>
Tue, 1 Dec 2020 04:29:33 +0000 (15:29 +1100)
commit690ab4ba4bc90fa2f43c03eb418c3dc163f57ea8
treefbc1bcc082bc03442570fe33d61e577695eb7260
parent520fd6d3ecf7b0cec09bae8a26b939b7ed485bbf
Win32: re-work FILETIME <=> time_t conversions

Current versions of Windows claim to support leap seconds, but the
time conversion I was using ignores that possibility.

Switch to using APIs (FileTimeToSystemTime() and SystemTimeToFileTime())
that are documented to support leap seconds that might be included
in a FILETIME.
win32/win32.c