This topic has not yet been rated - Rate this topic

SystemTimeToTzSpecificLocalTimeEx function

Converts a time in Coordinated Universal Time (UTC) with dynamic daylight saving time settings to a specified time zone's corresponding local time.

Syntax


BOOL WINAPI SystemTimeToTzSpecificLocalTimeEx(
  _In_opt_  const DYNAMIC_TIME_ZONE_INFORMATION *lpTimeZoneInformation,
  _In_      const SYSTEMTIME *lpUniversalTime,
  _Out_     LPSYSTEMTIME lpLocalTime
);

Parameters

lpTimeZoneInformation [in, optional]

A pointer to a DYNAMIC_TIME_ZONE_INFORMATION structure that specifies the time zone and dynamic daylight saving time.

lpUniversalTime [in]

A pointer to a SYSTEMTIME structure that specifies the UTC time to be converted. The function converts this universal time to the specified time zone's corresponding local time.

lpLocalTime [out]

A pointer to a SYSTEMTIME structure that receives the local time.

Return value

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Winbase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

 

 

Send comments about this topic to Microsoft

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.