Show / Hide Table of Contents

Class NSTimeZoneRule

Information about a rule for a TimeZone.

Syntax

Constructors

NSTimeZoneRule()

Initializes a new instance of the NSTimeZoneRule class.

Declaration
NSTimeZoneRule

Methods

GetEndDay()

Information about a rule for a TimeZone.

Declaration
Integer GetEndDay()
Returns
Type Description
Integer

Custom DST end day, if 0 then parse startRule.

Examples
NSTimeZoneRule thing;
Integer endDay = thing.GetEndDay();

GetEndMonth()

Information about a rule for a TimeZone.

Declaration
Integer GetEndMonth()
Returns
Type Description
Integer

Custom DST end month, if 0 then parse startRule.

Examples
NSTimeZoneRule thing;
Integer endMonth = thing.GetEndMonth();

GetEndRulePattern()

Information about a rule for a TimeZone.

Declaration
String GetEndRulePattern()
Returns
Type Description
String

DST end rule, such as 2300 LST-SAT-OCT; limited to rules that we have parse code for; use dayOfMonth etc for custom rules.

Examples
NSTimeZoneRule thing;
String endRulePattern = thing.GetEndRulePattern();

GetStartDay()

Information about a rule for a TimeZone.

Declaration
Integer GetStartDay()
Returns
Type Description
Integer

Custom DST start day, if 0 then parse startRule.

Examples
NSTimeZoneRule thing;
Integer startDay = thing.GetStartDay();

GetStartMonth()

Information about a rule for a TimeZone.

Declaration
Integer GetStartMonth()
Returns
Type Description
Integer

Custom DST start month, if 0 then parse startRule.

Examples
NSTimeZoneRule thing;
Integer startMonth = thing.GetStartMonth();

GetStartRulePattern()

Information about a rule for a TimeZone.

Declaration
String GetStartRulePattern()
Returns
Type Description
String

DST start rule, such as 0200 1ST-SUN-APR; limited to rules that we have parse code for; use dayOfMonth etc for custom rules.

Examples
NSTimeZoneRule thing;
String startRulePattern = thing.GetStartRulePattern();

GetTZOffset()

Information about a rule for a TimeZone.

Declaration
Integer GetTZOffset()
Returns
Type Description
Integer

Number of minutes bias relative to UTC time.

Examples
NSTimeZoneRule thing;
Integer tZOffset = thing.GetTZOffset();

SetEndDay(Integer)

Information about a rule for a TimeZone.

Declaration
Void SetEndDay(Integer endDay)
Parameters
Type Name Description
Integer endDay

Custom DST end day, if 0 then parse startRule.

Returns
Type Description
Void
Examples
NSTimeZoneRule thing;
Integer endDay;
thing.SetEndDay(endDay);

SetEndMonth(Integer)

Information about a rule for a TimeZone.

Declaration
Void SetEndMonth(Integer endMonth)
Parameters
Type Name Description
Integer endMonth

Custom DST end month, if 0 then parse startRule.

Returns
Type Description
Void
Examples
NSTimeZoneRule thing;
Integer endMonth;
thing.SetEndMonth(endMonth);

SetEndRulePattern(String)

Information about a rule for a TimeZone.

Declaration
Void SetEndRulePattern(String endRulePattern)
Parameters
Type Name Description
String endRulePattern

DST end rule, such as 2300 LST-SAT-OCT; limited to rules that we have parse code for; use dayOfMonth etc for custom rules.

Returns
Type Description
Void
Examples
NSTimeZoneRule thing;
String endRulePattern;
thing.SetEndRulePattern(endRulePattern);

SetStartDay(Integer)

Information about a rule for a TimeZone.

Declaration
Void SetStartDay(Integer startDay)
Parameters
Type Name Description
Integer startDay

Custom DST start day, if 0 then parse startRule.

Returns
Type Description
Void
Examples
NSTimeZoneRule thing;
Integer startDay;
thing.SetStartDay(startDay);

SetStartMonth(Integer)

Information about a rule for a TimeZone.

Declaration
Void SetStartMonth(Integer startMonth)
Parameters
Type Name Description
Integer startMonth

Custom DST start month, if 0 then parse startRule.

Returns
Type Description
Void
Examples
NSTimeZoneRule thing;
Integer startMonth;
thing.SetStartMonth(startMonth);

SetStartRulePattern(String)

Information about a rule for a TimeZone.

Declaration
Void SetStartRulePattern(String startRulePattern)
Parameters
Type Name Description
String startRulePattern

DST start rule, such as 0200 1ST-SUN-APR; limited to rules that we have parse code for; use dayOfMonth etc for custom rules.

Returns
Type Description
Void
Examples
NSTimeZoneRule thing;
String startRulePattern;
thing.SetStartRulePattern(startRulePattern);

SetTZOffset(Integer)

Information about a rule for a TimeZone.

Declaration
Void SetTZOffset(Integer tZOffset)
Parameters
Type Name Description
Integer tZOffset

Number of minutes bias relative to UTC time.

Returns
Type Description
Void
Examples
NSTimeZoneRule thing;
Integer tZOffset;
thing.SetTZOffset(tZOffset);
In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top