class TimeZoneInfo.AdjustmentRule

in global :: System

Provides information about a time zone adjustment, such as the transition to and from daylight saving time.


public static TimeZoneInfo.AdjustmentRule CreateAdjustmentRule( DateTime dateStart, DateTime dateEnd, TimeSpan daylightDelta, TimeZoneInfo.TransitionTime daylightTransitionStart, TimeZoneInfo.TransitionTime daylightTransitionEnd )

Creates a new adjustment rule for a particular time zone.

  • dateStart The effective date of the adjustment rule. If the value of the parameter is , this is the first adjustment rule in effect for a time zone.
  • dateEnd The last date that the adjustment rule is in force. If the value of the parameter is , the adjustment rule has no end date.
  • daylightDelta The time change that results from the adjustment. This value is added to the time zone's property to obtain the correct daylight offset from Coordinated Universal Time (UTC). This value can range from -14 to 14.
  • daylightTransitionStart An object that defines the start of daylight saving time.
  • daylightTransitionEnd An object that defines the end of daylight saving time.
  • Returns An object that represents the new adjustment rule.

public DateTime DateEnd { get; }

Gets the date when the adjustment rule ceases to be in effect.

  • Returns A value that indicates the end date of the adjustment rule.

public DateTime DateStart { get; }

Gets the date when the adjustment rule takes effect.

  • Returns A value that indicates when the adjustment rule takes effect.

public TimeSpan DaylightDelta { get; }

Gets the amount of time that is required to form the time zone's daylight saving time. This amount of time is added to the time zone's offset from Coordinated Universal Time (UTC).

  • Returns A object that indicates the amount of time to add to the standard time changes as a result of the adjustment rule.

public TimeZoneInfo.TransitionTime DaylightTransitionEnd { get; }

Gets information about the annual transition from daylight saving time back to standard time.

  • Returns A object that defines the annual transition from daylight saving time back to the time zone's standard time.

public TimeZoneInfo.TransitionTime DaylightTransitionStart { get; }

Gets information about the annual transition from standard time to daylight saving time.

  • Returns A object that defines the annual transition from a time zone's standard time to daylight saving time.

public bool Equals( TimeZoneInfo.AdjustmentRule other )

Determines whether the current object is equal to a second object.

  • other The object to compare with the current object.
  • Returns if both objects have equal values; otherwise, .

public TimeSpan BaseUtcOffsetDelta { get; }

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public static TimeZoneInfo.AdjustmentRule CreateAdjustmentRule( DateTime dateStart, DateTime dateEnd, TimeSpan daylightDelta, TimeZoneInfo.TransitionTime daylightTransitionStart, TimeZoneInfo.TransitionTime daylightTransitionEnd, TimeSpan baseUtcOffsetDelta )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.