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

UnicodeString & DateFormat::format ( UDate  date,
UnicodeString appendTo 
) const [inherited]

Formats a UDate into a date/time string. If there is a problem, you won't know, using this method. Use the overloaded format() method which takes a FieldPosition& to detect formatting problems.

Parameters:
date The UDate value to be formatted into a string.
appendTo Output parameter to receive result. Result is appended to existing contents.
Returns:
Reference to 'appendTo' parameter. ICU 2.0

Reimplemented in SimpleDateFormat.

Definition at line 223 of file datefmt.cpp.

References DateFormat::format().

{
    // Note that any error information is just lost.  That's okay
    // for this convenience method.
    FieldPosition fpos(0);
    return format(date, appendTo, fpos);
}


Generated by  Doxygen 1.6.0   Back to index