System::TimeZoneInfo::CreateCustomTimeZone method

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)
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.

ReturnValue

New time zone.

See Also

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)
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.

ReturnValue

New time zone.

See Also

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)
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.

ReturnValue

New time zone.

See Also