Mercurial > vba-clojure
annotate src/win32/7zip/7z/CPP/Windows/Time.h @ 3:b05d00f19d80
fix some formatting
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:33:11 -0600 |
parents | f9f4f1b99eed |
children |
rev | line source |
---|---|
rlm@1 | 1 // Windows/Time.h |
rlm@1 | 2 |
rlm@1 | 3 #ifndef __WINDOWS_TIME_H |
rlm@1 | 4 #define __WINDOWS_TIME_H |
rlm@1 | 5 |
rlm@1 | 6 #include "Common/Types.h" |
rlm@1 | 7 |
rlm@1 | 8 namespace NWindows { |
rlm@1 | 9 namespace NTime { |
rlm@1 | 10 |
rlm@1 | 11 bool DosTimeToFileTime(UInt32 dosTime, FILETIME &fileTime); |
rlm@1 | 12 bool FileTimeToDosTime(const FILETIME &fileTime, UInt32 &dosTime); |
rlm@1 | 13 void UnixTimeToFileTime(UInt32 unixTime, FILETIME &fileTime); |
rlm@1 | 14 bool FileTimeToUnixTime(const FILETIME &fileTime, UInt32 &unixTime); |
rlm@1 | 15 bool GetSecondsSince1601(unsigned year, unsigned month, unsigned day, |
rlm@1 | 16 unsigned hour, unsigned min, unsigned sec, UInt64 &resSeconds); |
rlm@1 | 17 void GetCurUtcFileTime(FILETIME &ft); |
rlm@1 | 18 |
rlm@1 | 19 }} |
rlm@1 | 20 |
rlm@1 | 21 #endif |