Compartilhar via


SetTimeZoneBias (Compact 2013)

3/28/2014

This function sets the bias for local time and daylight time.

Syntax

 BOOL SetTimeZoneBias(
   DWORD dwBias,
   DWORD dwDaylightBias
);

Parameters

  • dwBias
    [in] The difference, in minutes, between UTC and local time.
  • dwDaylightBias
    [in] The difference, in minutes, between UTC and daylight time.

Return Value

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

In Windows Embedded Compact, the system behaves as if the real-time clock were maintained in Universal Coordinated Time (UTC). However, for backward compatibility, the underlying hardware clock is maintained in local time. APIs such as SetTimeZoneBias now keep system time constant and change local time.

Windows Embedded Compact includes a time service responsible for maintaining system time by using network time services, if available. The time service is responsible for managing daylight saving time (DST) changes. Therefore, the SetDaylightTime API is removed from Windows Embedded Compact.

See Also

Reference

Time Functions