SetTimeZoneInformation (Windows CE 5.0)
This function sets the current time-zone parameters. These parameters control translations from UTC to local time.
BOOL SetTimeZoneInformation( const TIME_ZONE_INFORMATION* lpTimeZoneInformation );
- [in] Pointer to a TIME_ZONE_INFORMATION structure that contains the time-zone parameters to set.
Nonzero indicates success.
Zero indicates failure.
To get extended error information, call GetLastError.
SetTimeZoneInformation does not save the newly written data into the persistent registry. To write the data permanently, you need to make the following call: RegFlushKey(HKEY_LOCAL_MACHINE). For more information, see RegFlushKey.
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.
OS Versions: Windows CE 1.0 and later.
Link Library: Coredll.lib.
Send Feedback on this topic to the authors