1baa3858d3f5d128a5c8466b700098109edcad5f2repo sync// Windows/Time.h 2baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 3baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#ifndef __WINDOWS_TIME_H 4baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define __WINDOWS_TIME_H 5baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 6baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#include "Common/Types.h" 7baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 8baa3858d3f5d128a5c8466b700098109edcad5f2repo syncnamespace NWindows { 9baa3858d3f5d128a5c8466b700098109edcad5f2repo syncnamespace NTime { 10baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 11baa3858d3f5d128a5c8466b700098109edcad5f2repo syncbool DosTimeToFileTime(UInt32 dosTime, FILETIME &fileTime); 12baa3858d3f5d128a5c8466b700098109edcad5f2repo syncbool FileTimeToDosTime(const FILETIME &fileTime, UInt32 &dosTime); 13baa3858d3f5d128a5c8466b700098109edcad5f2repo syncvoid UnixTimeToFileTime(UInt32 unixTime, FILETIME &fileTime); 14baa3858d3f5d128a5c8466b700098109edcad5f2repo syncbool FileTimeToUnixTime(const FILETIME &fileTime, UInt32 &unixTime); 15baa3858d3f5d128a5c8466b700098109edcad5f2repo syncbool GetSecondsSince1601(unsigned year, unsigned month, unsigned day, 16baa3858d3f5d128a5c8466b700098109edcad5f2repo sync unsigned hour, unsigned min, unsigned sec, UInt64 &resSeconds); 17baa3858d3f5d128a5c8466b700098109edcad5f2repo syncvoid GetCurUtcFileTime(FILETIME &ft); 18baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 19baa3858d3f5d128a5c8466b700098109edcad5f2repo sync}} 20baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 21baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#endif 22