Closed nsfoxer closed 2 years ago
I don't know myself at this point (it's been many years since I wrote this crate) and I probably ended up copying it from somewhere else. Is the crate producing the wrong results for you?
Sorry, I have just tested on windows and Linux platforms and found that the value of 11644473600
is correct. Perhaps the starting point of timestamp under Windows does not start in 1961.
In the
unix_seconds()
function of the structFileTime
, it is calculated unix timestamp for 1970 year. When the system isWindows
, the time difference from 1961 to 1970 needs to be subtracted. This value may be3287 * 24 * 3600 = 283996800
, not be11644473600
?