CreateCustomTimeZone()

TimeZoneInfo::CreateCustomTimeZone(const String&, TimeSpan, const String&, const String&, const String&, const ArrayPtr<AdjustmentRulePtr>&, bool) method

Creates a custom time zone.

static TimeZoneInfoPtr System::TimeZoneInfo::CreateCustomTimeZone(const String &id, TimeSpan base_utc_offset, const String &display_name, const String &standard_display_name, const String &daylight_display_name, const ArrayPtr<AdjustmentRulePtr> &adjustment_rules, bool disable_daylight_saving_time)

Arguments

ParameterTypeDescription
idconst String&Time zone identifier.
base_utc_offsetTimeSpanTime interval between the current time zone’s standard time and UTC time.
display_nameconst String&Display name.
standard_display_nameconst String&Standard time name.
daylight_display_nameconst String&Daylight saving time name.
adjustment_rulesconst ArrayPtr<AdjustmentRulePtr>&Array of adjustment rules.
disable_daylight_saving_timeboolTrue to discard any daylight saving time information present in adjustment_rules.

Return Value

New time zone.

TimeZoneInfo::CreateCustomTimeZone(const String&, TimeSpan, const String&, const String&, const String&, const ArrayPtr<AdjustmentRulePtr>&) method

Creates a custom time zone.

static TimeZoneInfoPtr System::TimeZoneInfo::CreateCustomTimeZone(const String &id, TimeSpan base_utc_offset, const String &display_name, const String &standard_display_name, const String &daylight_display_name, const ArrayPtr<AdjustmentRulePtr> &adjustment_rules)

Arguments

ParameterTypeDescription
idconst String&Time zone identifier.
base_utc_offsetTimeSpanTime interval between the current time zone’s standard time and UTC time.
display_nameconst String&Display name.
standard_display_nameconst String&Standard time name.
daylight_display_nameconst String&Daylight saving time name.
adjustment_rulesconst ArrayPtr<AdjustmentRulePtr>&Array of adjustment rules.

Return Value

New time zone.

TimeZoneInfo::CreateCustomTimeZone(const String&, TimeSpan, const String&, const String&) method

Creates a custom time zone.

static TimeZoneInfoPtr System::TimeZoneInfo::CreateCustomTimeZone(const String &id, TimeSpan base_utc_offset, const String &display_name, const String &standard_display_name)

Arguments

ParameterTypeDescription
idconst String&Time zone identifier.
base_utc_offsetTimeSpanTime interval between the current time zone’s standard time and UTC time.
display_nameconst String&Display name.
standard_display_nameconst String&Standard time name.

Return Value

New time zone.

See Also