Changeset 21916 for trunk/src/kernel32/time.cpp
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/src/kernel32/time.cpp
r21302 r21916 36 36 #include "dbglocal.h" 37 37 38 extern "C" { 38 39 39 40 //****************************************************************************** 40 41 //File time (UTC) to MS-DOS date & time values (also UTC) 41 42 //****************************************************************************** 42 BOOL WIN32API FileTimeToDosDateTime(const FILETIME *lpFileTime, LPWORD lpDosDate, 43 BOOL WIN32API FileTimeToDosDateTime(const FILETIME *lpFileTime, LPWORD lpDosDate, 43 44 LPWORD lpDosTime) 44 45 { … … 60 61 return FALSE; 61 62 } 62 return O32_FileTimeToLocalFileTime(lpFileTime, lpLocalTime); 63 return O32_FileTimeToLocalFileTime(lpFileTime, lpLocalTime); 63 64 } 64 65 //****************************************************************************** 65 66 //Local time to File time (UTC) 66 67 //****************************************************************************** 67 BOOL WIN32API LocalFileTimeToFileTime(const FILETIME *lpLocalFileTime, 68 BOOL WIN32API LocalFileTimeToFileTime(const FILETIME *lpLocalFileTime, 68 69 LPFILETIME lpFileTime) 69 70 { … … 98 99 } 99 100 //****************************************************************************** 100 //MS-DOS date & time values (UTC) to File time (also UTC) 101 //MS-DOS date & time values (UTC) to File time (also UTC) 101 102 //****************************************************************************** 102 103 BOOL WIN32API DosDateTimeToFileTime(WORD wDosDate, WORD wDosTime, LPFILETIME pFileTime) 103 104 { 104 105 dprintf(("%x %x", wDosDate, wDosTime)); 105 106 106 107 if(pFileTime == NULL) { 107 108 SetLastError(ERROR_INVALID_PARAMETER); … … 117 118 } 118 119 //****************************************************************************** 119 //The GetLocalTime function retrieves the current local date and time. 120 //The GetLocalTime function retrieves the current local date and time. 120 121 //(in local time) 121 122 //****************************************************************************** … … 130 131 } 131 132 //****************************************************************************** 132 //The SetLocalTime function sets the current local time and date. 133 //The SetLocalTime function sets the current local time and date. 133 134 //(in local time) 134 135 //****************************************************************************** … … 143 144 } 144 145 //****************************************************************************** 145 //The GetSystemTime function retrieves the current system date and time. 146 //The GetSystemTime function retrieves the current system date and time. 146 147 //The system time is expressed in Coordinated Universal Time (UTC). 147 148 //****************************************************************************** … … 157 158 } 158 159 //****************************************************************************** 159 //The SetSystemTime function sets the current system time and date. 160 //The SetSystemTime function sets the current system time and date. 160 161 //The system time is expressed in Coordinated Universal Time (UCT). 161 162 //****************************************************************************** … … 185 186 } 186 187 //****************************************************************************** 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";188 static const LPCSTR szTZBias = "Bias"; 189 static const LPCSTR szTZActiveTimeBias = "ActiveTimeBias"; 190 191 static const LPCWSTR szTZStandardName = (LPCWSTR)L"StandardName"; 192 static const LPCSTR szTZStandardBias = "StandardBias"; 193 static const LPCSTR szTZStandardStart = "StandardStart"; 194 195 static const LPCWSTR szTZDaylightName = (LPCWSTR)L"DaylightName"; 196 static const LPCSTR szTZDaylightBias = "DaylightBias"; 197 static const LPCSTR szTZDaylightStart = "DaylightStart"; 198 static const LPCSTR KEY_WINDOWS_TZ = "SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation"; 198 199 //****************************************************************************** 199 200 DWORD WIN32API GetTimeZoneInformation(LPTIME_ZONE_INFORMATION lpTimeZone) … … 370 371 //****************************************************************************** 371 372 372 373 } // extern "C" 374
Note:
See TracChangeset
for help on using the changeset viewer.