BasicTimeZone
is an abstract class extending TimeZone
.
More...
#include <basictz.h>
Inheritance diagram for BasicTimeZone:
Public Member Functions | |
virtual | ~BasicTimeZone () |
Destructor. | |
virtual UBool | getNextTransition (UDate base, UBool inclusive, TimeZoneTransition &result)=0 |
Gets the first time zone transition after the base time. | |
virtual UBool | getPreviousTransition (UDate base, UBool inclusive, TimeZoneTransition &result)=0 |
Gets the most recent time zone transition before the base time. | |
virtual UBool | hasEquivalentTransitions (BasicTimeZone &tz, UDate start, UDate end, UBool ignoreDstAmount, UErrorCode &ec) |
Checks if the time zone has equivalent transitions in the time range. | |
virtual int32_t | countTransitionRules (UErrorCode &status)=0 |
Returns the number of TimeZoneRule s which represents time transitions, for this time zone, that is, all TimeZoneRule s for this time zone except InitialTimeZoneRule . | |
virtual void | getTimeZoneRules (const InitialTimeZoneRule *&initial, const TimeZoneRule *trsrules[], int32_t &trscount, UErrorCode &status)=0 |
Gets the InitialTimeZoneRule and the set of TimeZoneRule which represent time transitions for this time zone. | |
virtual void | getSimpleRulesNear (UDate date, InitialTimeZoneRule *&initial, AnnualTimeZoneRule *&std, AnnualTimeZoneRule *&dst, UErrorCode &status) |
Gets the set of time zone rules valid at the specified time. | |
Protected Member Functions | |
BasicTimeZone () | |
Default constructor. | |
BasicTimeZone (const UnicodeString &id) | |
Construct a timezone with a given ID. | |
BasicTimeZone (const BasicTimeZone &source) | |
Copy constructor. | |
void | getTimeZoneRulesAfter (UDate start, InitialTimeZoneRule *&initial, UVector *&transitionRules, UErrorCode &status) |
Gets the set of TimeZoneRule instances applicable to the specified time and after. |
BasicTimeZone
is an abstract class extending TimeZone
.
This class provides some additional methods to access time zone transitions and rules. All ICU TimeZone
concrete subclasses extend this class.
Definition at line 34 of file basictz.h.
|
Destructor.
|
|
Default constructor.
|
|
Construct a timezone with a given ID.
|
|
Copy constructor.
|
|
Returns the number of The return value range is 0 or any positive value.
Implemented in RuleBasedTimeZone, SimpleTimeZone, and VTimeZone. |
|
Gets the first time zone transition after the base time.
Implemented in RuleBasedTimeZone, SimpleTimeZone, and VTimeZone. |
|
Gets the most recent time zone transition before the base time.
Implemented in RuleBasedTimeZone, SimpleTimeZone, and VTimeZone. |
|
Gets the set of time zone rules valid at the specified time.
Some known external time zone implementations are not capable to handle historic time zone rule changes. Also some implementations can only handle certain type of rule definitions. If this time zone does not use any daylight saving time within about 1 year from the specified time, only the
|
|
Gets the
On successful return, the argument initial points to non-NULL
Implemented in RuleBasedTimeZone, SimpleTimeZone, and VTimeZone. |
|
Gets the set of TimeZoneRule instances applicable to the specified time and after.
|
|
Checks if the time zone has equivalent transitions in the time range. This method returns true when all of transition times, from/to standard offsets and DST savings used by this time zone match the other in the time range.
|