Logo Search packages:      
Sourcecode: icu version File versions  Download package

DateFormat *U_EXPORT2 DateFormat::createTimeInstance ( DateFormat::EStyle  style = kDefault,
const Locale aLocale = Locale::getDefault() 
) [static, inherited]

Creates a time formatter with the given formatting style for the given locale.

Parameters:
style The given formatting style. For example, SHORT for "h:mm a" in the US locale. Relative time styles are not currently supported.
aLocale The given locale.
Returns:
A time formatter which the caller owns. ICU 2.0

Definition at line 298 of file datefmt.cpp.

References DateFormat::create().

Referenced by MessageFormat::makeFormat(), DateFormatTest::TestDateFormatCalendar(), IntlTestDateFormat::testLocale(), and MessageFormat::toPattern().

{
    return create(style, kNone, aLocale);
}


Generated by  Doxygen 1.6.0   Back to index