1 // Windows/TimeUtils.h
2 
3 #ifndef __WINDOWS_TIME_UTILS_H
4 #define __WINDOWS_TIME_UTILS_H
5 
6 #include "../Common/MyTypes.h"
7 #include "../Common/MyWindows.h"
8 
9 namespace NWindows {
10 namespace NTime {
11 
12 bool DosTimeToFileTime(UInt32 dosTime, FILETIME &fileTime) throw();
13 bool FileTimeToDosTime(const FILETIME &fileTime, UInt32 &dosTime) throw();
14 void UnixTimeToFileTime(UInt32 unixTime, FILETIME &fileTime) throw();
15 bool UnixTime64ToFileTime(Int64 unixTime, FILETIME &fileTime) throw();
16 bool FileTimeToUnixTime(const FILETIME &fileTime, UInt32 &unixTime) throw();
17 Int64 FileTimeToUnixTime64(const FILETIME &ft) throw();
18 bool GetSecondsSince1601(unsigned year, unsigned month, unsigned day,
19   unsigned hour, unsigned min, unsigned sec, UInt64 &resSeconds) throw();
20 void GetCurUtcFileTime(FILETIME &ft) throw();
21 
22 }}
23 
24 #endif
25