System::TimeZoneInfo::AdjustmentRule::CreateAdjustmentRule method

AdjustmentRule::CreateAdjustmentRule(DateTime, DateTime, TimeSpan, const TransitionTime&, const TransitionTime&) method

Constructs an instance of AdjustmentRule class that represents a time adjustment rule described with the specified parameters.

static AdjustmentRulePtr System::TimeZoneInfo::AdjustmentRule::CreateAdjustmentRule(DateTime date_start, DateTime date_end, TimeSpan daylight_delta, const TransitionTime &daylight_transition_start, const TransitionTime &daylight_transition_end)
ParameterTypeDescription
date_startDateTimeThe date and time when the adjustment rule comes into effect.
date_endDateTimeThe date and time when the adjustment rule stops being effectvie.
daylight_deltaTimeSpanThe amount of time required to form the daylight saving time of the time zone.
daylight_transition_startconst TransitionTime&The information about transition from daylight saving time to standard time.
daylight_transition_endconst TransitionTime&The information about transition from standard time to daylight saving time.

ReturnValue

An instance of AdjustmentRule class that represents the described time zone adjustment rule.

See Also

AdjustmentRule::CreateAdjustmentRule(DateTime, DateTime, TimeSpan, const TransitionTime&, const TransitionTime&, TimeSpan, bool) method

Constructs an instance of AdjustmentRule class that represents a time adjustment rule described with the specified parameters.

static AdjustmentRulePtr System::TimeZoneInfo::AdjustmentRule::CreateAdjustmentRule(DateTime date_start, DateTime date_end, TimeSpan daylight_delta, const TransitionTime &daylight_transition_start, const TransitionTime &daylight_transition_end, TimeSpan base_utc_offset_delta, bool no_daylight_transitions)
ParameterTypeDescription
date_startDateTimeThe date and time when the adjustment rule comes into effect.
date_endDateTimeThe date and time when the adjustment rule stops being effectvie.
daylight_deltaTimeSpanThe amount of time required to form the daylight saving time of the time zone.
daylight_transition_startconst TransitionTime&The information about transition from daylight saving time to standard time.
daylight_transition_endconst TransitionTime&The information about transition from standard time to daylight saving time.
base_utc_offset_deltaTimeSpanThe delta from the default UTC offset.
no_daylight_transitionsboolSpecifies wheter the adjustment rule assumes the transition to daylight saving time.

ReturnValue

An instance of AdjustmentRule class that represents the described time zone adjustment rule.

See Also