Logo Search packages:      
Sourcecode: icu version File versions

U_NAMESPACE_BEGIN TimeUnitAmount::TimeUnitAmount ( const Formattable number,
TimeUnit::UTimeUnitFields  timeUnitField,
UErrorCode status 
)

Construct TimeUnitAmount object with the given number and the given time unit.

Parameters:
numbera numeric object; number.isNumeric() must be TRUE
timeUnitFieldthe time unit field of a time unit
statusthe input-output error code. If the number is not numeric or the timeUnitField is not valid, then this will be set to a failing value: U_ILLEGAL_ARGUMENT_ERROR. ICU 4.2

Definition at line 17 of file tmutamt.cpp.

Referenced by clone().

:    Measure(number, TimeUnit::createInstance(timeUnitField, status), status) {
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index