Skip to content

Latest commit

 

History

History
137 lines (109 loc) · 3.89 KB

nf-timezoneapi-getdynamictimezoneinformation.md

File metadata and controls

137 lines (109 loc) · 3.89 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:timezoneapi.GetDynamicTimeZoneInformation
GetDynamicTimeZoneInformation function (timezoneapi.h)
Retrieves the current time zone and dynamic daylight saving time settings. These settings control the translations between Coordinated Universal Time (UTC) and local time.
GetDynamicTimeZoneInformation
GetDynamicTimeZoneInformation function
base.getdynamictimezoneinformation
timezoneapi/GetDynamicTimeZoneInformation
base\getdynamictimezoneinformation.htm
winprog
9f96f779-7e4f-4a50-a9dc-f3bc86c76ece
12/05/2018
GetDynamicTimeZoneInformation, GetDynamicTimeZoneInformation function, base.getdynamictimezoneinformation, timezoneapi/GetDynamicTimeZoneInformation
timezoneapi.h
Windows.h
Windows
Windows Vista [desktop apps \| UWP apps]
Windows Server 2008 [desktop apps \| UWP apps]
Kernel32.lib
Kernel32.dll
Windows
19H1
GetDynamicTimeZoneInformation
timezoneapi/GetDynamicTimeZoneInformation
c++
APIRef
kbSyntax
DllExport
Kernel32.dll
API-MS-Win-Core-SysInfo-l1-1-0.dll
KernelBase.dll
API-MS-Win-Core-TimeZone-l1-1-0.dll
API-MS-Win-DownLevel-Kernel32-l1-1-0.dll
MinKernelBase.dll
GetDynamicTimeZoneInformation

GetDynamicTimeZoneInformation function

-description

Retrieves the current time zone and dynamic daylight saving time settings. These settings control the translations between Coordinated Universal Time (UTC) and local time.

-parameters

-param pTimeZoneInformation [out]

A pointer to a DYNAMIC_TIME_ZONE_INFORMATION structure.

-returns

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.

-remarks

The StandardName and DaylightName members of the resultant DYNAMIC_TIME_ZONE_INFORMATION structure are localized according to the current user default UI language.

-see-also

DYNAMIC_TIME_ZONE_INFORMATION

SetDynamicTimeZoneInformation

Time Functions