ICU 78.1 78.1 |
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>

Public Member Functions | |
| TimeArrayTimeZoneRule (constUnicodeString &name, int32_t rawOffset, int32_t dstSavings, constUDate *startTimes, int32_t numStartTimes,DateTimeRule::TimeRuleType timeRuleType) | |
Constructs aTimeArrayTimeZoneRule 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.More... | |
| TimeArrayTimeZoneRule (constTimeArrayTimeZoneRule &source) | |
| Copy constructor.More... | |
| virtual | ~TimeArrayTimeZoneRule () |
| Destructor.More... | |
| virtualTimeArrayTimeZoneRule * | clone () const override |
| Clone thisTimeArrayTimeZoneRule object polymorphically.More... | |
| TimeArrayTimeZoneRule & | operator= (constTimeArrayTimeZoneRule &right) |
| Assignment operator.More... | |
| virtual bool | operator== (constTimeZoneRule &that) const override |
Return true if the givenTimeZoneRule objects are semantically equal.More... | |
| virtual bool | operator!= (constTimeZoneRule &that) const override |
Return true if the givenTimeZoneRule objects are semantically unequal.More... | |
| DateTimeRule::TimeRuleType | getTimeType () const |
| Gets the time type of the start times used by this rule.More... | |
| UBool | getStartTimeAt (int32_t index,UDate &result) const |
| Gets a start time at the index stored in this rule.More... | |
| int32_t | countStartTimes () const |
| Returns the number of start times stored in this rule.More... | |
| virtualUBool | isEquivalentTo (constTimeZoneRule &that) const override |
| Returns if this rule represents the same rule and offsets as another.More... | |
| virtualUBool | getFirstStart (int32_t prevRawOffset, int32_t prevDSTSavings,UDate &result) const override |
| Gets the very first time when this rule takes effect.More... | |
| virtualUBool | getFinalStart (int32_t prevRawOffset, int32_t prevDSTSavings,UDate &result) const override |
| Gets the final time when this rule takes effect.More... | |
| virtualUBool | getNextStart (UDate base, int32_t prevRawOffset, int32_t prevDSTSavings,UBool inclusive,UDate &result) const override |
| Gets the first time when this rule takes effect after the specified time.More... | |
| virtualUBool | getPreviousStart (UDate base, int32_t prevRawOffset, int32_t prevDSTSavings,UBool inclusive,UDate &result) const override |
| Gets the most recent time when this rule takes effect before the specified time.More... | |
| virtualUClassID | getDynamicClassID () const override |
| Returns a unique class ID POLYMORPHICALLY.More... | |
Public Member Functions inherited fromicu::TimeZoneRule | |
| virtual | ~TimeZoneRule () |
| Destructor.More... | |
| UnicodeString & | getName (UnicodeString &name) const |
| Fills in "name" with the name of this time zone.More... | |
| int32_t | getRawOffset () const |
| Gets the standard time offset.More... | |
| int32_t | getDSTSavings () const |
| Gets the amount of daylight saving delta time from the standard time.More... | |
Public Member Functions inherited fromicu::UObject | |
| virtual | ~UObject () |
| Destructor.More... | |
Static Public Member Functions | |
| staticUClassID | getStaticClassID () |
| Return the class ID for this class.More... | |
Additional Inherited Members | |
Protected Member Functions inherited fromicu::TimeZoneRule | |
| TimeZoneRule (constUnicodeString &name, int32_t rawOffset, int32_t dstSavings) | |
Constructs aTimeZoneRule with the name, the GMT offset of its standard time and the amount of daylight saving offset adjustment.More... | |
| TimeZoneRule (constTimeZoneRule &source) | |
| Copy constructor.More... | |
| TimeZoneRule & | operator= (constTimeZoneRule &right) |
| Assignment operator.More... | |
TimeArrayTimeZoneRule represents a time zone rule whose start times are defined by an array of milliseconds since the standard base time.
| icu::TimeArrayTimeZoneRule::TimeArrayTimeZoneRule | ( | constUnicodeString & | name, |
| int32_t | rawOffset, | ||
| int32_t | dstSavings, | ||
| constUDate * | startTimes, | ||
| int32_t | numStartTimes, | ||
| DateTimeRule::TimeRuleType | timeRuleType | ||
| ) |
Constructs aTimeArrayTimeZoneRule 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.
| name | The time zone name. |
| rawOffset | The UTC offset of its standard time in milliseconds. |
| dstSavings | The amount of daylight saving offset adjustment in milliseconds. If this ia a rule for standard time, the value of this argument is 0. |
| startTimes | The array start times in milliseconds since the base time (January 1, 1970, 00:00:00). |
| numStartTimes | The number of elements in the parameter "startTimes" |
| timeRuleType | The time type of the start times, which is one ofDataTimeRule::WALL_TIME,STANDARD_TIME andUTC_TIME. |
| icu::TimeArrayTimeZoneRule::TimeArrayTimeZoneRule | ( | constTimeArrayTimeZoneRule & | source | ) |
| virtual |
Destructor.
| overridevirtual |
Clone thisTimeArrayTimeZoneRule object polymorphically.
The caller owns the result and should delete it when done.
Implementsicu::TimeZoneRule.
| int32_t icu::TimeArrayTimeZoneRule::countStartTimes | ( | ) | const |
Returns the number of start times stored in this rule.
| overridevirtual |
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. Polymorphicoperator==() andclone() methods call this method.
Reimplemented fromicu::UObject.
| overridevirtual |
Gets the final time when this rule takes effect.
| prevRawOffset | The standard time offset from UTC before this rule takes effect in milliseconds. |
| prevDSTSavings | The amount of daylight saving offset from the standard time. |
| result | Receives the final time when this rule takes effect. |
Implementsicu::TimeZoneRule.
| overridevirtual |
Gets the very first time when this rule takes effect.
| prevRawOffset | The standard time offset from UTC before this rule takes effect in milliseconds. |
| prevDSTSavings | The amount of daylight saving offset from the standard time. |
| result | Receives the very first time when this rule takes effect. |
Implementsicu::TimeZoneRule.
| overridevirtual |
Gets the first time when this rule takes effect after the specified time.
| base | The first start time after this base time will be returned. |
| prevRawOffset | The standard time offset from UTC before this rule takes effect in milliseconds. |
| prevDSTSavings | The amount of daylight saving offset from the standard time. |
| inclusive | Whether the base time is inclusive or not. |
| result | Receives The first time when this rule takes effect after the specified base time. |
Implementsicu::TimeZoneRule.
| overridevirtual |
Gets the most recent time when this rule takes effect before the specified time.
| base | The most recent time before this base time will be returned. |
| prevRawOffset | The standard time offset from UTC before this rule takes effect in milliseconds. |
| prevDSTSavings | The amount of daylight saving offset from the standard time. |
| inclusive | Whether the base time is inclusive or not. |
| result | Receives The most recent time when this rule takes effect before the specified base time. |
Implementsicu::TimeZoneRule.
Gets a start time at the index stored in this rule.
| index | The index of start times |
| result | Receives the start time at the index |
| static |
Return the class ID for this class.
This is useful only for comparing to a return value fromgetDynamicClassID(). For example:
. Base* polymorphic_pointer = createPolymorphicObject();. if (polymorphic_pointer->getDynamicClassID() ==. erived::getStaticClassID()) ...
| DateTimeRule::TimeRuleType icu::TimeArrayTimeZoneRule::getTimeType | ( | ) | const |
Gets the time type of the start times used by this rule.
The return value is eitherDateTimeRule::WALL_TIME orSTANDARD_TIME orUTC_TIME.
| overridevirtual |
Returns if this rule represents the same rule and offsets as another.
When twoTimeZoneRule objects differ only its names, this method returns true.
| that | TheTimeZoneRule object to be compared with. |
TimeZoneRule is equivalent to this one.Reimplemented fromicu::TimeZoneRule.
| overridevirtual |
Return true if the givenTimeZoneRule objects are semantically unequal.
Objects of different subclasses are considered unequal.
| that | The object to be compared with. |
TimeZoneRule objects are semantically unequal.Reimplemented fromicu::TimeZoneRule.
| TimeArrayTimeZoneRule& icu::TimeArrayTimeZoneRule::operator= | ( | constTimeArrayTimeZoneRule & | right | ) |
| overridevirtual |
Return true if the givenTimeZoneRule objects are semantically equal.
Objects of different subclasses are considered unequal.
| that | The object to be compared with. |
TimeZoneRule objects are semantically equal.Reimplemented fromicu::TimeZoneRule.