AnnualTimeZoneRule is a class used for representing a time zone rule which takes effect annually.
More...
#include <tzrule.h>
Inheritance diagram for AnnualTimeZoneRule:

Public Member Functions | |
| AnnualTimeZoneRule (const UnicodeString &name, int32_t rawOffset, int32_t dstSavings, const DateTimeRule &dateTimeRule, int32_t startYear, int32_t endYear) | |
Constructs a AnnualTimeZoneRule with the name, the GMT offset of its standard time, the amount of daylight saving offset adjustment, the annual start time rule and the start/until years. | |
| AnnualTimeZoneRule (const UnicodeString &name, int32_t rawOffset, int32_t dstSavings, DateTimeRule *dateTimeRule, int32_t startYear, int32_t endYear) | |
Constructs a AnnualTimeZoneRule with the name, the GMT offset of its standard time, the amount of daylight saving offset adjustment, the annual start time rule and the start/until years. | |
| AnnualTimeZoneRule (const AnnualTimeZoneRule &source) | |
| Copy constructor. | |
| virtual | ~AnnualTimeZoneRule () |
| Destructor. | |
| virtual AnnualTimeZoneRule * | clone (void) const |
| Clone this AnnualTimeZoneRule object polymorphically. | |
| AnnualTimeZoneRule & | operator= (const AnnualTimeZoneRule &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. | |
| const DateTimeRule * | getRule (void) const |
| Gets the start date/time rule used by this rule. | |
| int32_t | getStartYear (void) const |
| Gets the first year when this rule takes effect. | |
| int32_t | getEndYear (void) const |
| Gets the end year when this rule takes effect. | |
| UBool | getStartInYear (int32_t year, int32_t prevRawOffset, int32_t prevDSTSavings, UDate &result) const |
| Gets the time when this rule takes effect in the given year. | |
| 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. | |
Static Public Attributes | |
| const int32_t | MAX_YEAR |
| The constant representing the maximum year used for designating a rule is permanent. | |
AnnualTimeZoneRule is a class used for representing a time zone rule which takes effect annually.
The calenday system used for the rule is is based on Gregorian calendar
Definition at line 376 of file tzrule.h.
|
||||||||||||||||||||||||||||
|
Constructs a The input DateTimeRule is copied by this constructor, so the caller remains responsible for deleting the object.
|
|
||||||||||||||||||||||||||||
|
Constructs a The input DateTimeRule object is adopted by this object, therefore, the caller must not delete the object.
|
|
|
Copy constructor.
|
|
|
Destructor.
|
|
|
Clone this AnnualTimeZoneRule object polymorphically. The caller owns the result and should delete it when done.
Implements TimeZoneRule. |
|
|
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 end year when this rule takes effect.
|
|
||||||||||||||||
|
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 the start date/time rule used by this rule.
|
|
||||||||||||||||||||
|
Gets the time when this rule takes effect in the given year.
|
|
|
Gets the first year when this rule takes effect.
|
|
|
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()) ...
|
|
|
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