Mercurial > vba-clojure
diff src/win32/7zip/7z/CPP/Windows/Time.h @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/win32/7zip/7z/CPP/Windows/Time.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,21 @@ 1.4 +// Windows/Time.h 1.5 + 1.6 +#ifndef __WINDOWS_TIME_H 1.7 +#define __WINDOWS_TIME_H 1.8 + 1.9 +#include "Common/Types.h" 1.10 + 1.11 +namespace NWindows { 1.12 +namespace NTime { 1.13 + 1.14 +bool DosTimeToFileTime(UInt32 dosTime, FILETIME &fileTime); 1.15 +bool FileTimeToDosTime(const FILETIME &fileTime, UInt32 &dosTime); 1.16 +void UnixTimeToFileTime(UInt32 unixTime, FILETIME &fileTime); 1.17 +bool FileTimeToUnixTime(const FILETIME &fileTime, UInt32 &unixTime); 1.18 +bool GetSecondsSince1601(unsigned year, unsigned month, unsigned day, 1.19 + unsigned hour, unsigned min, unsigned sec, UInt64 &resSeconds); 1.20 +void GetCurUtcFileTime(FILETIME &ft); 1.21 + 1.22 +}} 1.23 + 1.24 +#endif