Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the current time zone and dynamic daylight saving time settings. These settings control the translations between Coordinated Universal Time (UTC) and local time.
DWORD GetDynamicTimeZoneInformation(
[out] PDYNAMIC_TIME_ZONE_INFORMATION pTimeZoneInformation
);
[out] pTimeZoneInformation
A pointer to a DYNAMIC_TIME_ZONE_INFORMATION structure.
If the function succeeds, it returns one of the following values.
Return code/value | Description |
---|---|
|
Daylight saving time is not used in the current time zone, because there are no transition dates. |
|
The system is operating in the range covered by the StandardDate member of the DYNAMIC_TIME_ZONE_INFORMATION structure. |
|
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.
The StandardName and DaylightName members of the resultant DYNAMIC_TIME_ZONE_INFORMATION structure are localized according to the current user default UI language.
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | timezoneapi.h (include Windows.h) |
Library | Kernel32.lib |
DLL | Kernel32.dll |
Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!