CreateCustomTimeZone()
Contents
[
Hide
]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
Parameter | Type | Description |
---|---|---|
id | const String& | Time zone identifier. |
base_utc_offset | TimeSpan | Time interval between the current time zone’s standard time and UTC time. |
display_name | const String& | Display name. |
standard_display_name | const String& | Standard time name. |
daylight_display_name | const String& | Daylight saving time name. |
adjustment_rules | const ArrayPtr<AdjustmentRulePtr>& | Array of adjustment rules. |
disable_daylight_saving_time | bool | True 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
Parameter | Type | Description |
---|---|---|
id | const String& | Time zone identifier. |
base_utc_offset | TimeSpan | Time interval between the current time zone’s standard time and UTC time. |
display_name | const String& | Display name. |
standard_display_name | const String& | Standard time name. |
daylight_display_name | const String& | Daylight saving time name. |
adjustment_rules | const 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
Parameter | Type | Description |
---|---|---|
id | const String& | Time zone identifier. |
base_utc_offset | TimeSpan | Time interval between the current time zone’s standard time and UTC time. |
display_name | const String& | Display name. |
standard_display_name | const String& | Standard time name. |
Return Value
New time zone.
See Also
- Typedef TimeZoneInfoPtr
- Typedef ArrayPtr
- Typedef AdjustmentRulePtr
- Class String
- Class TimeSpan
- Class TimeZoneInfo
- Namespace System
- Library Aspose.Slides