Changeset 21732 for branches/gcc-kmk/src/kernel32/time.cpp
- Timestamp:
- Oct 21, 2011, 5:13:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/src/kernel32/time.cpp
r21302 r21732 40 40 //File time (UTC) to MS-DOS date & time values (also UTC) 41 41 //****************************************************************************** 42 BOOL WIN32API FileTimeToDosDateTime(const FILETIME *lpFileTime, LPWORD lpDosDate, 42 BOOL WIN32API FileTimeToDosDateTime(const FILETIME *lpFileTime, LPWORD lpDosDate, 43 43 LPWORD lpDosTime) 44 44 { … … 60 60 return FALSE; 61 61 } 62 return O32_FileTimeToLocalFileTime(lpFileTime, lpLocalTime); 62 return O32_FileTimeToLocalFileTime(lpFileTime, lpLocalTime); 63 63 } 64 64 //****************************************************************************** 65 65 //Local time to File time (UTC) 66 66 //****************************************************************************** 67 BOOL WIN32API LocalFileTimeToFileTime(const FILETIME *lpLocalFileTime, 67 BOOL WIN32API LocalFileTimeToFileTime(const FILETIME *lpLocalFileTime, 68 68 LPFILETIME lpFileTime) 69 69 { … … 98 98 } 99 99 //****************************************************************************** 100 //MS-DOS date & time values (UTC) to File time (also UTC) 100 //MS-DOS date & time values (UTC) to File time (also UTC) 101 101 //****************************************************************************** 102 102 BOOL WIN32API DosDateTimeToFileTime(WORD wDosDate, WORD wDosTime, LPFILETIME pFileTime) 103 103 { 104 104 dprintf(("%x %x", wDosDate, wDosTime)); 105 105 106 106 if(pFileTime == NULL) { 107 107 SetLastError(ERROR_INVALID_PARAMETER); … … 117 117 } 118 118 //****************************************************************************** 119 //The GetLocalTime function retrieves the current local date and time. 119 //The GetLocalTime function retrieves the current local date and time. 120 120 //(in local time) 121 121 //****************************************************************************** … … 130 130 } 131 131 //****************************************************************************** 132 //The SetLocalTime function sets the current local time and date. 132 //The SetLocalTime function sets the current local time and date. 133 133 //(in local time) 134 134 //****************************************************************************** … … 143 143 } 144 144 //****************************************************************************** 145 //The GetSystemTime function retrieves the current system date and time. 145 //The GetSystemTime function retrieves the current system date and time. 146 146 //The system time is expressed in Coordinated Universal Time (UTC). 147 147 //****************************************************************************** … … 157 157 } 158 158 //****************************************************************************** 159 //The SetSystemTime function sets the current system time and date. 159 //The SetSystemTime function sets the current system time and date. 160 160 //The system time is expressed in Coordinated Universal Time (UCT). 161 161 //****************************************************************************** … … 185 185 } 186 186 //****************************************************************************** 187 static const LP STR szTZBias = "Bias";188 static const LP STR szTZActiveTimeBias = "ActiveTimeBias";189 190 static const LP WSTR szTZStandardName = (LPWSTR)L"StandardName";191 static const LP STR szTZStandardBias = "StandardBias";192 static const LP STR szTZStandardStart = "StandardStart";193 194 static const LP WSTR szTZDaylightName = (LPWSTR)L"DaylightName";195 static const LP STR szTZDaylightBias = "DaylightBias";196 static const LP STR szTZDaylightStart = "DaylightStart";197 static const LP STR KEY_WINDOWS_TZ = "SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation";187 static const LPCSTR szTZBias = "Bias"; 188 static const LPCSTR szTZActiveTimeBias = "ActiveTimeBias"; 189 190 static const LPCWSTR szTZStandardName = (LPCWSTR)L"StandardName"; 191 static const LPCSTR szTZStandardBias = "StandardBias"; 192 static const LPCSTR szTZStandardStart = "StandardStart"; 193 194 static const LPCWSTR szTZDaylightName = (LPCWSTR)L"DaylightName"; 195 static const LPCSTR szTZDaylightBias = "DaylightBias"; 196 static const LPCSTR szTZDaylightStart = "DaylightStart"; 197 static const LPCSTR KEY_WINDOWS_TZ = "SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation"; 198 198 //****************************************************************************** 199 199 DWORD WIN32API GetTimeZoneInformation(LPTIME_ZONE_INFORMATION lpTimeZone)
Note:
See TracChangeset
for help on using the changeset viewer.