Class NSTimeZoneRule

Information about a rule for a TimeZone.

Constructors

NSTimeZoneRule()

Initializes a new instance of the NSTimeZoneRule class.

Declaration

NSTimeZoneRule

Methods

GetEndDay()

Declaration

Integer GetEndDay()

Examples

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

Returns

Type Description
Integer Custom DST end day, if 0 then parse startRule.

GetEndMonth()

Declaration

Integer GetEndMonth()

Examples

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

Returns

Type Description
Integer Custom DST end month, if 0 then parse startRule.

GetEndRulePattern()

Declaration

String GetEndRulePattern()

Examples

NSTimeZoneRule thing;
String endRulePattern = thing.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.

GetStartDay()

Declaration

Integer GetStartDay()

Examples

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

Returns

Type Description
Integer Custom DST start day, if 0 then parse startRule.

GetStartMonth()

Declaration

Integer GetStartMonth()

Examples

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

Returns

Type Description
Integer Custom DST start month, if 0 then parse startRule.

GetStartRulePattern()

Declaration

String GetStartRulePattern()

Examples

NSTimeZoneRule thing;
String startRulePattern = thing.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.

GetTZOffset()

Declaration

Integer GetTZOffset()

Examples

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

Returns

Type Description
Integer Number of minutes bias relative to UTC time.

SetEndDay(Integer)

Declaration

Void SetEndDay(Integer endDay)

Examples

NSTimeZoneRule thing;
Integer endDay;
thing.SetEndDay(endDay);

Parameters

Type Name Description
Integer endDay Custom DST end day, if 0 then parse startRule.

Returns

Type Description
Void

SetEndMonth(Integer)

Declaration

Void SetEndMonth(Integer endMonth)

Examples

NSTimeZoneRule thing;
Integer endMonth;
thing.SetEndMonth(endMonth);

Parameters

Type Name Description
Integer endMonth Custom DST end month, if 0 then parse startRule.

Returns

Type Description
Void

SetEndRulePattern(String)

Declaration

Void SetEndRulePattern(String endRulePattern)

Examples

NSTimeZoneRule thing;
String endRulePattern;
thing.SetEndRulePattern(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

SetStartDay(Integer)

Declaration

Void SetStartDay(Integer startDay)

Examples

NSTimeZoneRule thing;
Integer startDay;
thing.SetStartDay(startDay);

Parameters

Type Name Description
Integer startDay Custom DST start day, if 0 then parse startRule.

Returns

Type Description
Void

SetStartMonth(Integer)

Declaration

Void SetStartMonth(Integer startMonth)

Examples

NSTimeZoneRule thing;
Integer startMonth;
thing.SetStartMonth(startMonth);

Parameters

Type Name Description
Integer startMonth Custom DST start month, if 0 then parse startRule.

Returns

Type Description
Void

SetStartRulePattern(String)

Declaration

Void SetStartRulePattern(String startRulePattern)

Examples

NSTimeZoneRule thing;
String startRulePattern;
thing.SetStartRulePattern(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

SetTZOffset(Integer)

Declaration

Void SetTZOffset(Integer tZOffset)

Examples

NSTimeZoneRule thing;
Integer tZOffset;
thing.SetTZOffset(tZOffset);

Parameters

Type Name Description
Integer tZOffset Number of minutes bias relative to UTC time.

Returns

Type Description
Void