ICU 62.1 62.1
|
Measurement unit for time units. More...
#include <tmunit.h>
Public Types | |
enum | UTimeUnitFields { UTIMEUNIT_YEAR , UTIMEUNIT_MONTH , UTIMEUNIT_DAY , UTIMEUNIT_WEEK , UTIMEUNIT_HOUR , UTIMEUNIT_MINUTE , UTIMEUNIT_SECOND , UTIMEUNIT_FIELD_COUNT } |
Constants for all the time units we supported. More... | |
Public Member Functions | |
virtual UObject * | clone () const |
Override clone. | |
TimeUnit (const TimeUnit &other) | |
Copy operator. | |
TimeUnit & | operator= (const TimeUnit &other) |
Assignment operator. | |
virtual UClassID | getDynamicClassID () const |
Returns a unique class ID for this object POLYMORPHICALLY. | |
UTimeUnitFields | getTimeUnitField () const |
Get time unit field. | |
virtual | ~TimeUnit () |
Destructor. | |
![]() | |
MeasureUnit () | |
Default constructor. | |
MeasureUnit (const MeasureUnit &other) | |
Copy constructor. | |
MeasureUnit & | operator= (const MeasureUnit &other) |
Assignment operator. | |
virtual | ~MeasureUnit () |
Destructor. | |
virtual UBool | operator== (const UObject &other) const |
Equality operator. | |
UBool | operator!= (const UObject &other) const |
Inequality operator. | |
const char * | getType () const |
Get the type. | |
const char * | getSubtype () const |
Get the sub type. | |
int32_t | getIndex () const |
ICU use only. | |
![]() | |
virtual | ~UObject () |
Destructor. | |
Additional Inherited Members | |
![]() | |
void | initTime (const char *timeId) |
For ICU use only. | |
void | initCurrency (const char *isoCurrency) |
For ICU use only. | |
void | initNoUnit (const char *subtype) |
For ICU use only. | |
Constants for all the time units we supported.
Enumerator | |
---|---|
UTIMEUNIT_FIELD_COUNT | One more than the highest normal UTimeUnitFields value.
|
|
static |
Returns a unique class ID for this object POLYMORPHICALLY.
This method implements a simple form of RTTI used by ICU.
Reimplemented from icu::MeasureUnit.
Returns the class ID for this class.
This is used to compare to the return value of getDynamicClassID().
UTimeUnitFields icu::TimeUnit::getTimeUnitField | ( | ) | const |