This function sets the current time-zone parameters. These parameters control translations from Coordinated Universal Time (UTC) to local time.
At a Glance
Header file: | Winbase.h |
Windows CE versions: | 1.0 and later |
Syntax
BOOL SetTimeZoneInformation(
const TIME_ZONE_INFORMATION *lpTimeZoneInformation );
Parameters
lpTimeZoneInformation
[in] Pointer to a TIME_ZONE_INFORMATION structure that contains the time-zone parameters to set.
Return Values
Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.
Remarks
All translations between UTC and local time are based on the following formula:
UTC = local time + bias
The bias is the difference, in minutes, between UTC and local time.
See Also