Go to the documentation of this file.
19 #if U_SHOW_CPLUSPLUS_API
21 #if !UCONFIG_NO_FORMATTING
156 #ifndef U_HIDE_INTERNAL_API
174 int32_t& rawOffset, int32_t& dstOffset,
UErrorCode& status)
const;
178 #ifndef U_HIDE_INTERNAL_API
184 kStdDstMask = kDaylight,
185 kFormerLatterMask = kLatter
Basic definitions for ICU, for both C and C++ APIs.
int8_t UBool
The ICU boolean type.
BasicTimeZone(const BasicTimeZone &source)
Copy constructor.
BasicTimeZone is an abstract class extending TimeZone.
TimeZoneRule is a class representing a rule for time zone.
TimeZone represents a time zone offset, and also figures out daylight savings.
virtual ~BasicTimeZone()
Destructor.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: TimeZone object.
virtual UBool getNextTransition(UDate base, UBool inclusive, TimeZoneTransition &result) const =0
Gets the first time zone transition after the base time.
AnnualTimeZoneRule is a class used for representing a time zone rule which takes effect annually.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
C++ API: Time zone transition.
void getTimeZoneRulesAfter(UDate start, InitialTimeZoneRule *&initial, UVector *&transitionRules, UErrorCode &status) const
Gets the set of TimeZoneRule instances applicable to the specified time and after.
InitialTimeZoneRule represents a time zone rule representing a time zone effective from the beginning...
virtual int32_t countTransitionRules(UErrorCode &status) const =0
Returns the number of TimeZoneRules which represents time transitions, for this time zone,...
virtual UBool hasEquivalentTransitions(const BasicTimeZone &tz, UDate start, UDate end, UBool ignoreDstAmount, UErrorCode &ec) const
Checks if the time zone has equivalent transitions in the time range.
TimeZoneTransition is a class representing a time zone transition.
virtual void getOffsetFromLocal(UDate date, int32_t nonExistingTimeOpt, int32_t duplicatedTimeOpt, int32_t &rawOffset, int32_t &dstOffset, UErrorCode &status) const
Get time zone offsets from local wall time.
double UDate
Date and Time data type.
BasicTimeZone()
Default constructor.
BasicTimeZone & operator=(const BasicTimeZone &)=default
Copy assignment.
C++ API: Time zone rule classes.
virtual BasicTimeZone * clone() const =0
Clones this object polymorphically.
BasicTimeZone(const UnicodeString &id)
Construct a timezone with a given ID.
virtual UBool getPreviousTransition(UDate base, UBool inclusive, TimeZoneTransition &result) const =0
Gets the most recent time zone transition before the base time.
virtual void getTimeZoneRules(const InitialTimeZoneRule *&initial, const TimeZoneRule *trsrules[], int32_t &trscount, UErrorCode &status) const =0
Gets the InitialTimeZoneRule and the set of TimeZoneRule which represent time transitions for this ti...
virtual void getSimpleRulesNear(UDate date, InitialTimeZoneRule *&initial, AnnualTimeZoneRule *&std, AnnualTimeZoneRule *&dst, UErrorCode &status) const
Gets the set of time zone rules valid at the specified time.