Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TzSpecificLocalTimeToSystemTimeEx function

Converts a local time to a time with dynamic daylight saving time settings to Coordinated Universal Time (UTC).

Syntax


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

Parameters

lpTimeZoneInformation [in, optional]

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

lpLocalTime [in]

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

lpUniversalTime [out]

A pointer to a SYSTEMTIME structure that receives the UTC 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 | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Winbase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

 

 

Show:
© 2017 Microsoft