TimeZoneInfo.TransitionTime.TimeOfDay Property

 

Gets the hour, minute, and second at which the time change occurs.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

member TimeOfDay : DateTime with get

Property Value

Type: System.DateTime

The time of day at which the time change occurs.

For transitions from standard time to daylight saving time, the TimeOfDay value represents the time of the transition in the time zone's standard time. For transitions from daylight saving time to standard time, it represents the time of the transition in the time zone's daylight saving time.

The TimeOfDay property defines only the time of a time change, but not its date. The date is determined by the Month and Day properties for fixed-rule changes, and by the Month, Week, and DayOfWeek properties for floating-rule changes. The date component of this DateTime value is ignored; the value of the year, month, and day is always 1.

The TimeOfDay property is used for both fixed-date and floating-date transitions.

The following example enumerates the time zones found on the local computer and displays transition time information for those time zones that have adjustment rules. The time information includes the time of day at which the time change occurs.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.5
Return to top
Show: