Home | History | Annotate | Download | only in unicode

Lines Matching refs:Format

31 #include "unicode/format.h"
62 * DateFormat helps you to format and parse dates for any locale. Your code can
64 * week, or even the calendar format: lunar vs. solar.
66 * To format a date for the current Locale, use one of the static factory
73 * myString = dfmt->format( myDate, myString );
77 * format and use it multiple times so that the system doesn't have to fetch the
86 * cout << df->format( myDateArr[i], myString ) << endl;
97 * myString = dfmt->format( myDate, myString );
102 * To format a date for a different Locale, specify it in the call to
117 * Use createDateInstance() to produce the normal date format for that country.
119 * to produce the normal time format for that country. Use createDateTimeInstance()
131 * You can also set the time zone on the format if you wish. If you want even
132 * more control over the format or parsing, (or want to give your users more
137 * You can also use forms of the parse and format methods with ParsePosition and
149 class U_I18N_API DateFormat : public Format {
223 virtual UBool operator==(const Format&) const;
226 using Format::format;
229 * Format an object to produce a string. This method handles Formattable
233 * @param obj The object to format. Must be a Date.
242 virtual UnicodeString& format(const Formattable& obj,
248 * Format an object to produce a string. This method handles Formattable
252 * @param obj The object to format. Must be a Date.
256 * of fields generated by this format call. Field values
262 virtual UnicodeString& format(const Formattable& obj,
299 virtual UnicodeString& format( Calendar& cal,
315 * of fields generated by this format call. Field values
321 virtual UnicodeString& format(Calendar& cal,
352 UnicodeString& format( UDate date,
363 * of fields generated by this format call. Field values
369 UnicodeString& format(UDate date,
375 * know, using this method. Use the overloaded format() method which takes a
384 UnicodeString& format(UDate date, UnicodeString& appendTo) const;
396 * this object's format method but can still be parsed as a date, then the
397 * parse succeeds. Clients may insist on strict adherence to the format by
406 * ERA field of the Calendar object) is not normally part of the format,
411 * within the era/cycle that should be assumed if absent in the format.
429 * this object's format method but can still be parsed as a date, then the
430 * parse succeeds. Clients may insist on strict adherence to the format by
459 * this object's format method but can still be parsed as a date, then the
460 * parse succeeds. Clients may insist on strict adherence to the format by
469 * ERA field of the Calendar object) is not normally part of the format,
474 * within the era/cycle that should be assumed if absent in the format.
497 * See Format::parseObject() for more.
666 * do not precisely match this object's format. Without lenient parsing,
667 * inputs must match this object's format more closely.
696 * do not precisely match this object's format. Without lenient parsing,
697 * inputs must match this object's format more closely.
716 * Set the calendar to be used by this date format. Initially, the default
727 * Set the calendar to be used by this date format. Initially, the default
737 * Gets the number formatter which this date/time formatter uses to format
811 * @return *this - for chaining (example: format.setAttribute(...).setAttribute(...) )
860 * The number formatter that DateFormat uses to format numbers in dates and
862 * format for the locale associated with this DateFormat.