c++ - Convert Windows Filetime to second in Unix/Linux - Stack Overflow
(I discovered I can't enter readable code in a comment, so...) Note that Windows can represent times outside the range of POSIX epoch times, and thus a conversion routine should return an "out-of-range" indication as appropriate. The simplest method is: ....