TimeZoneRule
is a class representing a rule for time zone.
More...
#include <tzrule.h>
Inheritance diagram for TimeZoneRule:
Public Member Functions | |
virtual | ~TimeZoneRule () |
Destructor. | |
virtual TimeZoneRule * | clone (void) const =0 |
Clone this TimeZoneRule object polymorphically. | |
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. | |
UnicodeString & | getName (UnicodeString &name) const |
Fills in "name" with the name of this time zone. | |
int32_t | getRawOffset (void) const |
Gets the standard time offset. | |
int32_t | getDSTSavings (void) const |
Gets the amount of daylight saving delta time from the standard time. | |
virtual UBool | isEquivalentTo (const TimeZoneRule &other) 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 =0 |
Gets the very first time when this rule takes effect. | |
virtual UBool | getFinalStart (int32_t prevRawOffset, int32_t prevDSTSavings, UDate &result) const =0 |
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 =0 |
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 =0 |
Gets the most recent time when this rule takes effect before the specified time. | |
Protected Member Functions | |
TimeZoneRule (const UnicodeString &name, int32_t rawOffset, int32_t dstSavings) | |
Constructs a TimeZoneRule with the name, the GMT offset of its standard time and the amount of daylight saving offset adjustment. | |
TimeZoneRule (const TimeZoneRule &source) | |
Copy constructor. | |
TimeZoneRule & | operator= (const TimeZoneRule &right) |
Assignment operator. |
TimeZoneRule
is a class representing a rule for time zone.
TimeZoneRule
has a set of time zone attributes, such as zone name, raw offset (UTC offset for standard time) and daylight saving time offset.
Definition at line 32 of file tzrule.h.
|
Destructor.
|
|
Constructs a
|
|
Copy constructor.
|
|
Clone this TimeZoneRule object polymorphically. The caller owns the result and should delete it when done.
Implemented in InitialTimeZoneRule, AnnualTimeZoneRule, and TimeArrayTimeZoneRule. |
|
Gets the amount of daylight saving delta time from the standard time.
|
|
Gets the final time when this rule takes effect.
Implemented in InitialTimeZoneRule, AnnualTimeZoneRule, and TimeArrayTimeZoneRule. |
|
Gets the very first time when this rule takes effect.
Implemented in InitialTimeZoneRule, AnnualTimeZoneRule, and TimeArrayTimeZoneRule. |
|
Fills in "name" with the name of this time zone.
|
|
Gets the first time when this rule takes effect after the specified time.
Implemented in InitialTimeZoneRule, AnnualTimeZoneRule, and TimeArrayTimeZoneRule. |
|
Gets the most recent time when this rule takes effect before the specified time.
Implemented in InitialTimeZoneRule, AnnualTimeZoneRule, and TimeArrayTimeZoneRule. |
|
Gets the standard time offset.
|
|
Returns if this rule represents the same rule and offsets as another.
When two
Reimplemented in InitialTimeZoneRule, AnnualTimeZoneRule, and TimeArrayTimeZoneRule. |
|
Return true if the given Objects of different subclasses are considered unequal.
Reimplemented in InitialTimeZoneRule, AnnualTimeZoneRule, and TimeArrayTimeZoneRule. |
|
Assignment operator.
|
|
Return true if the given Objects of different subclasses are considered unequal.
Reimplemented in InitialTimeZoneRule, AnnualTimeZoneRule, and TimeArrayTimeZoneRule. |