An abstract class for service providers that provide concrete implementations of the DateFormat class.
An abstract class for service providers that provide concrete implementations of the DateFormat class.
(get-date-instance this style locale)
Returns a new DateFormat instance which formats date with the given formatting style for the specified locale.
style - the given formatting style. Either one of DateFormat.SHORT, DateFormat.MEDIUM, DateFormat.LONG, or DateFormat.FULL. - int
locale - the desired locale. - java.util.Locale
returns: a date formatter. - java.text.DateFormat
throws: java.lang.IllegalArgumentException - if style is invalid, or if locale isn't one of the locales returned from getAvailableLocales().
Returns a new DateFormat instance which formats date with the given formatting style for the specified locale. style - the given formatting style. Either one of DateFormat.SHORT, DateFormat.MEDIUM, DateFormat.LONG, or DateFormat.FULL. - `int` locale - the desired locale. - `java.util.Locale` returns: a date formatter. - `java.text.DateFormat` throws: java.lang.IllegalArgumentException - if style is invalid, or if locale isn't one of the locales returned from getAvailableLocales().
(get-date-time-instance this date-style time-style locale)
Returns a new DateFormat instance which formats date and time with the given formatting style for the specified locale.
date-style - the given date formatting style. Either one of DateFormat.SHORT, DateFormat.MEDIUM, DateFormat.LONG, or DateFormat.FULL. - int
time-style - the given time formatting style. Either one of DateFormat.SHORT, DateFormat.MEDIUM, DateFormat.LONG, or DateFormat.FULL. - int
locale - the desired locale. - java.util.Locale
returns: a date/time formatter. - java.text.DateFormat
throws: java.lang.IllegalArgumentException - if dateStyle or timeStyle is invalid, or if locale isn't one of the locales returned from getAvailableLocales().
Returns a new DateFormat instance which formats date and time with the given formatting style for the specified locale. date-style - the given date formatting style. Either one of DateFormat.SHORT, DateFormat.MEDIUM, DateFormat.LONG, or DateFormat.FULL. - `int` time-style - the given time formatting style. Either one of DateFormat.SHORT, DateFormat.MEDIUM, DateFormat.LONG, or DateFormat.FULL. - `int` locale - the desired locale. - `java.util.Locale` returns: a date/time formatter. - `java.text.DateFormat` throws: java.lang.IllegalArgumentException - if dateStyle or timeStyle is invalid, or if locale isn't one of the locales returned from getAvailableLocales().
(get-time-instance this style locale)
Returns a new DateFormat instance which formats time with the given formatting style for the specified locale.
style - the given formatting style. Either one of DateFormat.SHORT, DateFormat.MEDIUM, DateFormat.LONG, or DateFormat.FULL. - int
locale - the desired locale. - java.util.Locale
returns: a time formatter. - java.text.DateFormat
throws: java.lang.IllegalArgumentException - if style is invalid, or if locale isn't one of the locales returned from getAvailableLocales().
Returns a new DateFormat instance which formats time with the given formatting style for the specified locale. style - the given formatting style. Either one of DateFormat.SHORT, DateFormat.MEDIUM, DateFormat.LONG, or DateFormat.FULL. - `int` locale - the desired locale. - `java.util.Locale` returns: a time formatter. - `java.text.DateFormat` throws: java.lang.IllegalArgumentException - if style is invalid, or if locale isn't one of the locales returned from getAvailableLocales().
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close