Go to the documentation of this file.
19 #if U_SHOW_CPLUSPLUS_API
21 #if !UCONFIG_NO_FORMATTING
Basic definitions for ICU, for both C and C++ APIs.
void setTime(UDate time)
Sets the time of transition in milliseconds.
int8_t UBool
The ICU boolean type.
TimeZoneRule is a class representing a rule for time zone.
TimeZoneTransition(const TimeZoneTransition &source)
Copy constructor.
void adoptFrom(TimeZoneRule *from)
Adopts the rule used before the transition.
const TimeZoneRule * getFrom(void) const
Returns the rule used before the transition.
UBool operator!=(const TimeZoneTransition &that) const
Return true if the given TimeZoneTransition objects are semantically unequal.
void setFrom(const TimeZoneRule &from)
Sets the rule used before the transition.
UObject is the common ICU "boilerplate" class.
TimeZoneTransition & operator=(const TimeZoneTransition &right)
Assignment operator.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
const TimeZoneRule * getTo(void) const
Returns the rule used after the transition.
UDate getTime(void) const
Returns the time of transition in milliseconds.
~TimeZoneTransition()
Destructor.
TimeZoneTransition(UDate time, const TimeZoneRule &from, const TimeZoneRule &to)
Constructs a TimeZoneTransition with the time and the rules before/after the transition.
UBool operator==(const TimeZoneTransition &that) const
Return true if the given TimeZoneTransition objects are semantically equal.
TimeZoneTransition()
Constructs an empty TimeZoneTransition
virtual UClassID getDynamicClassID(void) const
Returns a unique class ID POLYMORPHICALLY.
TimeZoneTransition is a class representing a time zone transition.
void setTo(const TimeZoneRule &to)
Sets the rule used after the transition.
static UClassID getStaticClassID(void)
Return the class ID for this class.
double UDate
Date and Time data type.
void adoptTo(TimeZoneRule *to)
Adopts the rule used after the transition.
TimeZoneTransition * clone() const
Clone this TimeZoneTransition object polymorphically.
C++ API: Common ICU base class UObject.