public interface DateFormatInfo
DateFormats.setLocalFormatInfo(org.zkoss.text.DateFormatInfo) to provide
the format information for different styling and locales.| Modifier and Type | Method and Description |
|---|---|
String |
getDateFormat(int style,
Locale locale)
Return the date format of the given style and locale, or null
if the default one shall be used.
|
String |
getDateTimeFormat(int dateStyle,
int timeStyle,
Locale locale)
Return the date/time format of the given style and locale, or null
if the default one shall be used.
|
String |
getTimeFormat(int style,
Locale locale)
Return the time format of the given style and locale, or null
if the default one shall be used.
|
String getDateFormat(int style, Locale locale)
style - the giving formatting style (never null). For example,
DateFormat.SHORT for "M/d/yy" in the US locale.locale - the locale (never null).String getTimeFormat(int style, Locale locale)
style - the giving formatting style (never null). For example,
DateFormat.SHORT for "h:mm a" in the US locale.locale - the locale (never null).String getDateTimeFormat(int dateStyle, int timeStyle, Locale locale)
dateStyle - the giving formatting style (never null). For example,
DateFormat.SHORT for "M/d/yy" in the US locale.timeStyle - the giving formatting style (never null). For example,
DateFormat.SHORT for "h:mm a" in the US locale.locale - the locale (never null).Copyright © 2018. All rights reserved.