U_CAPI UDateFormat* udat_open (UDateFormatStyle timeStyle, UDateFormatStyle dateStyle, const char *locale, const UChar *tzID, int32_t tzIDLength, UErrorCode *status)
Open a new UDateFormat for formatting and parsing dates and times
Documentation
Open a new UDateFormat for formatting and parsing dates and times.
A UDateFormat may be used to format dates in calls to udat_format,
and to parse dates in calls to udat_parse.
- Returns:
- A pointer to a UDateFormat to use for formatting dates and times, or 0 if
an error occurred.
- Parameters:
- timeStyle - The style used to format times; one of UDAT_FULL_STYLE, UDAT_LONG_STYLE,
UDAT_MEDIUM_STYLE, UDAT_SHORT_STYLE, or UDAT_DEFAULT_STYLE
dateStyle - The style used to format dates; one of UDAT_FULL_STYLE, UDAT_LONG_STYLE,
UDAT_MEDIUM_STYLE, UDAT_SHORT_STYLE, or UDAT_DEFAULT_STYLE
locale - The locale specifying the formatting conventions
tzID - A timezone ID specifying the timezone to use. If 0, use
the default timezone.
tzIDLength - The length of tzID, or -1 if null-terminated.
status - A pointer to an UErrorCode to receive any errors
- See Also:
- udat_openPattern
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de