|Filetime and Systemtime, as well as LocalTime are derived from the floating point number I mentioned. The information that is returned from these API calls that you mention are not actually stored anywhere in that format.|
I found this out when writing an application that reads the time from an atomic clock. The time is returned in Unix time which is different again having its Origen in 1970.
Here's the VB formulas I use to convert the information back to its floating point original.
GetGMTTime = DateDiff("s", #1/1/1900#, CDate(DateSerial(.wYear, .wMonth, .wDay) & " " & TimeSerial(.wHour, .wMinute, .wSecond))) + CDbl(.wMilliseconds) / 1000
This value returned in GetGMTTime is used to update the clock. If it were wrong the time would be wrong every time I called the function, which it isn't.