다음을 통해 공유


Daylight Saving Time Registry Settings (Windows CE 5.0)

Send Feedback

The following registry key example shows how to set the OS to daylight saving time during cold or warm boot.

[HKEY_LOCAL_MACHINE\Software\Microsoft\Clock]
    "HomeDST": REG_DWORD

If you set this registry value to 1, when the OS boots, daylight saving time is enabled for the current time zone. The OS reads the current time zone when the OS boots. If you set this registry value to 0, daylight saving time is disabled the next time the OS boots. The OS reads this registry value only when the OS boots. If the OS cannot find this registry value, the OS uses the default value of 0.

For Windows CE, by default, the registry key for Daylight Saving Time is not present. This should be interpreted to mean that there is no auto-adjust for Daylight Saving Time. The registry key gets created on demand, for example, when the clock application is activated. If the key is present, the value of the registry key should be used as is, for the .NET Compact Framework logic to work i.e. for DateTime.Now to return a coherent value.

Note   You can use the SetDaylightTime function to enable or disable daylight saving time in code.

See Also

Core OS Registry Settings

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.