rlm@1: // Windows/Time.h rlm@1: rlm@1: #ifndef __WINDOWS_TIME_H rlm@1: #define __WINDOWS_TIME_H rlm@1: rlm@1: #include "Common/Types.h" rlm@1: rlm@1: namespace NWindows { rlm@1: namespace NTime { rlm@1: rlm@1: bool DosTimeToFileTime(UInt32 dosTime, FILETIME &fileTime); rlm@1: bool FileTimeToDosTime(const FILETIME &fileTime, UInt32 &dosTime); rlm@1: void UnixTimeToFileTime(UInt32 unixTime, FILETIME &fileTime); rlm@1: bool FileTimeToUnixTime(const FILETIME &fileTime, UInt32 &unixTime); rlm@1: bool GetSecondsSince1601(unsigned year, unsigned month, unsigned day, rlm@1: unsigned hour, unsigned min, unsigned sec, UInt64 &resSeconds); rlm@1: void GetCurUtcFileTime(FILETIME &ft); rlm@1: rlm@1: }} rlm@1: rlm@1: #endif