Provides information about a specific time change, such as the change from daylight saving time to standard time or vice versa, in a particular time zone.
Assembly: mscorlib (in mscorlib.dll)
Thetype exposes the following members.
|Day||Gets the day on which the time change occurs.|
|DayOfWeek||Gets the day of the week on which the time change occurs.|
|IsFixedDateRule||Gets a value indicating whether the time change occurs at a fixed date and time (such as November 1) or a floating date and time (such as the last Sunday of October).|
|Month||Gets the month in which the time change occurs.|
|TimeOfDay||Gets the hour, minute, and second at which the time change occurs.|
|Week||Gets the week of the month in which a time change occurs.|
|CreateFixedDateRule||Defines a time change that uses a fixed-date rule.|
|CreateFloatingDateRule||Defines a time change that uses a floating-date rule.|
|Equals(Object)||Determines whether an object has identical values to the current object. (Overrides ValueType.Equals(Object).)|
|Equals(TimeZoneInfo.TransitionTime)||Determines whether the current object has identical values to a second object.|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for hashing algorithms and data structures such as hash tables. (Overrides ValueType.GetHashCode.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns the fully qualified type name of this instance. (Inherited from ValueType.)|
You can use the structure to indicate when a transition from standard time to daylight saving time, or from daylight saving time back to standard time, occurs. This structure supports both fixed-date rules and floating-date rules. Use fixed-date rules for time transitions that occur on a specific day of a specific month (such as 2:00 A.M. on November 3). Use floating-date rules for time transitions that occur on a specific day of a specific week of a specific month (such as 2:00 A.M. on the first Sunday of November).
An instance of the structure is immutable. Once an object has been created, its values cannot be modified.
A object can be created by calling the static (Shared in Visual Basic) CreateFixedDateRule and CreateFloatingDateRule methods to create a fixed or floating-date rule, respectively. The starting and ending objects are then supplied as parameters to the CreateAdjustmentRule method to create a new adjustment rule that includes this transition time information.
The HostProtectionAttribute attribute applied to this type or member has the following Resources property value: MayLeakOnAbort. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.