|
ICU 57.1 57.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. | |
Public Member Functions inherited from MeasureUnit | |
| 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. | |
Public Member Functions inherited from UObject | |
| virtual | ~UObject () |
| Destructor. | |
Additional Inherited Members | |
Protected Member Functions inherited from MeasureUnit | |
| void | initTime (const char *timeId) |
| For ICU use only. | |
| void | initCurrency (const char *isoCurrency) |
| For ICU use only. | |
Measurement unit for time units.
|
static |
Returns a unique class ID for this object POLYMORPHICALLY.
This method implements a simple form of RTTI used by ICU.
Reimplemented from MeasureUnit.
Returns the class ID for this class.
This is used to compare to the return value of getDynamicClassID().
| UTimeUnitFields TimeUnit::getTimeUnitField | ( | ) | const |