The GetTimeZoneInformation function retrieves the current time-zone parameters. These parameters control the translations between Coordinated Universal Time (UTC) and local time.
DWORD GetTimeZoneInformation(
LPTIME_ZONE_INFORMATION lpTimeZoneInformation |
// address of time-zone settings |
); |
If the function succeeds, the return value is one of the following values:
Value |
Meaning |
TIME_ZONE_ID_UNKNOWN |
The operating system cannot determine the current time zone. This is usually because a previous call to the SetTimeZoneInformation function supplied only the bias (and no transition dates). Windows NT: This value is also returned if daylight savings time is not used in the current time zone (StandardBias equals DaylightBias). |
TIME_ZONE_ID_STANDARD |
The operating system is operating in the range covered by the StandardDate member of the TIME_ZONE_INFORMATION structure. Windows 95: This value is also returned if daylight savings time is not used in the current time zone (StandardBias equals DaylightBias). |
TIME_ZONE_ID_DAYLIGHT |
The operating system is operating in the range covered by the DaylightDate member of the TIME_ZONE_INFORMATION structure. |
If the function fails, the return value is 0xFFFFFFFF. To get extended error information, call GetLastError.
All translations between UTC time and local time are based on the following formula:
UTC = local time + bias
The bias is the difference, in minutes, between UTC time and local time.
SetTimeZoneInformation, TIME_ZONE_INFORMATION
file: /Techref/os/win/api/win32/func/src/f41_16.htm, 3KB, , updated: 2000/4/7 11:19, local time: 2024/11/8 17:39,
3.147.7.233:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.ecomorder.com/techref/os/win/api/win32/func/src/f41_16.htm"> GetTimeZoneInformation</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to massmind.ecomorder.com! |
.