Applies to: desktop apps | Metro style apps
Retrieves the current time zone and dynamic daylight saving time settings. These settings control the translations between Coordinated Universal Time (UTC) and local time.
Syntax
DWORD WINAPI GetDynamicTimeZoneInformation(
__out PDYNAMIC_TIME_ZONE_INFORMATION pTimeZoneInformation
);
Parameters
- pTimeZoneInformation [out]
-
A pointer to a DYNAMIC_TIME_ZONE_INFORMATION structure.
Return value
If the function succeeds, it returns one of the following values.
| Return code/value | Description |
- TIME_ZONE_ID_UNKNOWN
- 0
|
Daylight saving time is not used in the current time zone, because there are no transition dates.
|
- TIME_ZONE_ID_STANDARD
- 1
|
The system is operating in the range covered by the StandardDate member of the
DYNAMIC_TIME_ZONE_INFORMATION structure.
|
- TIME_ZONE_ID_DAYLIGHT
- 2
|
The system is operating in the range covered by the DaylightDate member of the
DYNAMIC_TIME_ZONE_INFORMATION structure.
|
If the function fails, it returns TIME_ZONE_ID_INVALID. To get extended error information, call
GetLastError.
Requirements
|
Minimum supported client
| Windows Vista |
|
Minimum supported server
| Windows Server 2008 |
|
Header
|
- Winbase.h (include Windows.h)
|
|
Library
|
- Kernel32.lib
|
|
DLL
|
- Kernel32.dll
|
See also
-
DYNAMIC_TIME_ZONE_INFORMATION
-
SetDynamicTimeZoneInformation
-
Time Functions
Send comments about this topic to Microsoft
Build date: 3/6/2012