Measurement unit for time units.
More...
#include <tmunit.h>
|
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...
|
|
Measurement unit for time units.
- See Also
- TimeUnitAmount
-
TimeUnit
- Stable:
- ICU 4.2
Definition at line 30 of file tmunit.h.
Constants for all the time units we supported.
- Stable:
- ICU 4.2
Definition at line 36 of file tmunit.h.
TimeUnit::TimeUnit |
( |
const TimeUnit & |
other | ) |
|
virtual TimeUnit::~TimeUnit |
( |
| ) |
|
|
virtual |
virtual UObject* TimeUnit::clone |
( |
| ) |
const |
|
virtual |
Create Instance.
- Parameters
-
timeUnitField | time unit field based on which the instance is created. |
status | input-output error code. If the timeUnitField is invalid, then this will be set to U_ILLEGAL_ARGUMENT_ERROR. |
- Returns
- a TimeUnit instance
- Stable:
- ICU 4.2
virtual UClassID TimeUnit::getDynamicClassID |
( |
| ) |
const |
|
virtual |
Returns a unique class ID for this object POLYMORPHICALLY.
This method implements a simple form of RTTI used by ICU.
- Returns
- The class ID for this object. All objects of a given class have the same class ID. Objects of other classes have different class IDs.
- Stable:
- ICU 4.2
Implements UObject.
static UClassID TimeUnit::getStaticClassID |
( |
| ) |
|
|
static |
Returns the class ID for this class.
This is used to compare to the return value of getDynamicClassID().
- Returns
- The class ID for all objects of this class.
- Stable:
- ICU 4.2
Get time unit field.
- Returns
- time unit field.
- Stable:
- ICU 4.2
Assignment operator.
- Stable:
- ICU 4.2
virtual UBool TimeUnit::operator== |
( |
const UObject & |
other | ) |
const |
|
virtual |
The documentation for this class was generated from the following file: