Share via


StandardDate Field

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Contains a date and a local time when the transition from daylight saving time to standard time will occur on this operating system.

Namespace:  Microsoft.SPOT
Assembly:  Microsoft.SPOT.Native (in Microsoft.SPOT.Native.dll)

Syntax

'Declaration
Public StandardDate As SystemTime
public SystemTime StandardDate
public:
SystemTime^ StandardDate
val mutable StandardDate: SystemTime
public var StandardDate : SystemTime

Remarks

If a particular time zone does not support daylight saving time, or if the caller needs to disable daylight saving time, the Month field in the SystemTime object must be 0 (zero). If this date is specified, the StandardDate field in the current TimeZoneInformation object must also be specified. Otherwise, the system assumes that the time zone data is invalid and no changes are applied.

To select the correct day in a particular month, set the SystemTime object's Year member to 0 (zero), set the Hour and Minute members to the transition time, set the DayOfWeek member to the appropriate day of the week, and set the Day member to indicate the sequential occurrence of the specified day of the week within the specified month (that is, the first, second, third, fourth, or fifth occurrence of that day of the week in that month).

Using the following syntax, you can specify 2:00 a.m. on the first Sunday in each April: Hour = 2, Month = 4, DayOfWeek = 0, Day 1. Similarly, you can specify 2:00 a.m. on the last Thursday in each October as follows: Hour = 2, Month = 10, DayOfWeek = 4, Day = 5.

.NET Framework Security

See Also

Reference

TimeZoneInformation Class

Microsoft.SPOT Namespace