Author | Message | Time |
---|---|---|
LoRd | Is there any way to convert Unix system/file times to Windows system/file times? | March 27, 2004, 12:05 AM |
Skywing | [quote author=LoRd[nK] link=board=5;threadid=6016;start=0#msg51950 date=1080345936] Is there any way to convert Unix system/file times to Windows system/file times? [/quote] Something like this...: [code] typedef unsigned __int64 ulong64; FILETIME WindowsTime; time_t UnixTime; GetSystemTimeAsFileTime(&WindowsTime); UnixTime = ((((ulong64)WindowsTime.dwHighDateTime << 32) | WindowsTime.dwLowDateTime) - 116444736000000000i64) / 10000000i64;[/code] The Visual C++ sources would also be a good place to look for information on how to do this if you have them available. | March 27, 2004, 12:45 AM |