TimeArrayTimeZoneRule represents a time zone rule whose start times are defined by an array of milliseconds since the standard base time.
More...
#include <tzrule.h>
Inheritance diagram for TimeArrayTimeZoneRule:

Public Member Functions | |
| TimeArrayTimeZoneRule (const UnicodeString &name, int32_t rawOffset, int32_t dstSavings, const UDate *startTimes, int32_t numStartTimes, DateTimeRule::TimeRuleType timeRuleType) | |
Constructs a TimeArrayTimeZoneRule with the name, the GMT offset of its standard time, the amount of daylight saving offset adjustment and the array of times when this rule takes effect. | |
| TimeArrayTimeZoneRule (const TimeArrayTimeZoneRule &source) | |
| Copy constructor. | |
| virtual | ~TimeArrayTimeZoneRule () |
| Destructor. | |
| virtual TimeArrayTimeZoneRule * | clone (void) const |
| Clone this TimeArrayTimeZoneRule object polymorphically. | |
| TimeArrayTimeZoneRule & | operator= (const TimeArrayTimeZoneRule &right) |
| Assignment operator. | |
| virtual UBool | operator== (const TimeZoneRule &that) const |
Return true if the given TimeZoneRule objects are semantically equal. | |
| virtual UBool | operator!= (const TimeZoneRule &that) const |
Return true if the given TimeZoneRule objects are semantically unequal. | |
| DateTimeRule::TimeRuleType | getTimeType (void) const |
| Gets the time type of the start times used by this rule. | |
| UBool | getStartTimeAt (int32_t index, UDate &result) const |
| Gets a start time at the index stored in this rule. | |
| int32_t | countStartTimes (void) const |
| Returns the number of start times stored in this rule. | |
| virtual UBool | isEquivalentTo (const TimeZoneRule &that) const |
| Returns if this rule represents the same rule and offsets as another. | |
| virtual UBool | getFirstStart (int32_t prevRawOffset, int32_t prevDSTSavings, UDate &result) const |
| Gets the very first time when this rule takes effect. | |
| virtual UBool | getFinalStart (int32_t prevRawOffset, int32_t prevDSTSavings, UDate &result) const |
| Gets the final time when this rule takes effect. | |
| virtual UBool | getNextStart (UDate base, int32_t prevRawOffset, int32_t prevDSTSavings, UBool inclusive, UDate &result) const |
| Gets the first time when this rule takes effect after the specified time. | |
| virtual UBool | getPreviousStart (UDate base, int32_t prevRawOffset, int32_t prevDSTSavings, UBool inclusive, UDate &result) const |
| Gets the most recent time when this rule takes effect before the specified time. | |
| virtual UClassID | getDynamicClassID (void) const |
| Returns a unique class ID POLYMORPHICALLY. | |
Static Public Member Functions | |
| UClassID | getStaticClassID (void) |
| Return the class ID for this class. | |
TimeArrayTimeZoneRule represents a time zone rule whose start times are defined by an array of milliseconds since the standard base time.
Definition at line 616 of file tzrule.h.
|
||||||||||||||||||||||||||||
|
Constructs a
|
|
|
Copy constructor.
|
|
|
Destructor.
|
|
|
Clone this TimeArrayTimeZoneRule object polymorphically. The caller owns the result and should delete it when done.
Implements TimeZoneRule. |
|
|
Returns the number of start times stored in this rule.
|
|
|
Returns a unique class ID POLYMORPHICALLY. Pure virtual override. This method is to implement a simple version of RTTI, since not all C++ compilers support genuine RTTI. Polymorphic operator==() and clone() methods call this method.
Implements UObject. |
|
||||||||||||||||
|
Gets the final time when this rule takes effect.
Implements TimeZoneRule. |
|
||||||||||||||||
|
Gets the very first time when this rule takes effect.
Implements TimeZoneRule. |
|
||||||||||||||||||||||||
|
Gets the first time when this rule takes effect after the specified time.
Implements TimeZoneRule. |
|
||||||||||||||||||||||||
|
Gets the most recent time when this rule takes effect before the specified time.
Implements TimeZoneRule. |
|
||||||||||||
|
Gets a start time at the index stored in this rule.
|
|
|
Return the class ID for this class. This is useful only for comparing to a return value from getDynamicClassID(). For example: . Base* polymorphic_pointer = createPolymorphicObject(); . if (polymorphic_pointer->getDynamicClassID() == . erived::getStaticClassID()) ...
|
|
|
Gets the time type of the start times used by this rule.
The return value is either
|
|
|
Returns if this rule represents the same rule and offsets as another.
When two
Reimplemented from TimeZoneRule. |
|
|
Return true if the given Objects of different subclasses are considered unequal.
Reimplemented from TimeZoneRule. |
|
|
Assignment operator.
|
|
|
Return true if the given Objects of different subclasses are considered unequal.
Reimplemented from TimeZoneRule. |
1.3.9.1