/** * Overrides clone. * @stable ICU 2.0 */ public Object clone() { return new DateFormat((java.text.DateFormat)dateFormat.clone()); }
/** * Overrides clone. * @stable ICU 2.0 */ public Object clone() { return new DateFormat((java.text.DateFormat)dateFormat.clone()); }
/** * Returns the time formatter with the given formatting style * for the given locale. * @param style the given formatting style. For example, * SHORT for "h:mm a" in the US locale. * @param aLocale the given locale. * @return a time formatter. * @stable ICU 2.0 */ public final static DateFormat getTimeInstance(int style, Locale aLocale) { return new DateFormat(java.text.DateFormat.getTimeInstance(getJDKFormatStyle(style), aLocale)); }
/** * Returns the date formatter with the given formatting style * for the given locale. * @param style the given formatting style. For example, * SHORT for "M/d/yy" in the US locale. * @param aLocale the given locale. * @return a date formatter. * @stable ICU 2.0 */ public final static DateFormat getDateInstance(int style, Locale aLocale) { return new DateFormat(java.text.DateFormat.getDateInstance(getJDKFormatStyle(style), aLocale)); }
/** * Returns the date formatter with the given formatting style * for the given locale. * @param style the given formatting style. For example, * SHORT for "M/d/yy" in the US locale. * @param aLocale the given locale. * @return a date formatter. * @stable ICU 2.0 */ public final static DateFormat getDateInstance(int style, Locale aLocale) { return new DateFormat(java.text.DateFormat.getDateInstance(getJDKFormatStyle(style), aLocale)); }
/** * Returns the date formatter with the default formatting style * for the default locale. * @return a date formatter. * @stable ICU 2.0 */ public final static DateFormat getDateInstance() { return new DateFormat(java.text.DateFormat.getDateInstance( java.text.DateFormat.DEFAULT, ULocale.getDefault(Category.FORMAT).toLocale())); }
/** * Returns a default date/time formatter that uses the SHORT style for both the * date and the time. * @stable ICU 2.0 */ public final static DateFormat getInstance() { return new DateFormat(java.text.DateFormat.getDateTimeInstance( java.text.DateFormat.SHORT, java.text.DateFormat.SHORT, ULocale.getDefault(Category.FORMAT).toLocale())); }
/** * Gets the time formatter with the default formatting style * for the default locale. * @return a time formatter. * @stable ICU 2.0 */ public final static DateFormat getTimeInstance() { return new DateFormat(java.text.DateFormat.getTimeInstance( java.text.DateFormat.DEFAULT, ULocale.getDefault(Category.FORMAT).toLocale())); }
/** * Returns a default date/time formatter that uses the SHORT style for both the * date and the time. * @stable ICU 2.0 */ public final static DateFormat getInstance() { return new DateFormat(java.text.DateFormat.getDateTimeInstance( java.text.DateFormat.SHORT, java.text.DateFormat.SHORT, ULocale.getDefault(Category.FORMAT).toLocale())); }
/** * Gets the time formatter with the default formatting style * for the default locale. * @return a time formatter. * @stable ICU 2.0 */ public final static DateFormat getTimeInstance() { return new DateFormat(java.text.DateFormat.getTimeInstance( java.text.DateFormat.DEFAULT, ULocale.getDefault(Category.FORMAT).toLocale())); }
/** * Returns the date formatter with the default formatting style * for the default locale. * @return a date formatter. * @stable ICU 2.0 */ public final static DateFormat getDateInstance() { return new DateFormat(java.text.DateFormat.getDateInstance( java.text.DateFormat.DEFAULT, ULocale.getDefault(Category.FORMAT).toLocale())); }
/** * Returns the date/time formatter with the default formatting style * for the default locale. * @return a date/time formatter. * @stable ICU 2.0 */ public final static DateFormat getDateTimeInstance() { return new DateFormat(java.text.DateFormat.getDateTimeInstance( java.text.DateFormat.DEFAULT, java.text.DateFormat.DEFAULT, ULocale.getDefault(Category.FORMAT).toLocale())); }
/** * Returns the time formatter with the given formatting style * for the given locale. * @param style the given formatting style. For example, * SHORT for "h:mm a" in the US locale. * @param locale the given ulocale. * @return a time formatter. * @stable ICU 3.2 */ public final static DateFormat getTimeInstance(int style, ULocale locale) { return new DateFormat(java.text.DateFormat.getTimeInstance(getJDKFormatStyle(style), locale.toLocale())); }
/** * Returns the date/time formatter with the default formatting style * for the default locale. * @return a date/time formatter. * @stable ICU 2.0 */ public final static DateFormat getDateTimeInstance() { return new DateFormat(java.text.DateFormat.getDateTimeInstance( java.text.DateFormat.DEFAULT, java.text.DateFormat.DEFAULT, ULocale.getDefault(Category.FORMAT).toLocale())); }
/** * Returns the time formatter with the given formatting style * for the given locale. * @param style the given formatting style. For example, * SHORT for "h:mm a" in the US locale. * @param locale the given ulocale. * @return a time formatter. * @stable ICU 3.2 */ public final static DateFormat getTimeInstance(int style, ULocale locale) { return new DateFormat(java.text.DateFormat.getTimeInstance(getJDKFormatStyle(style), locale.toLocale())); }
/** * Returns the date formatter with the given formatting style * for the given locale. * @param style the given formatting style. For example, * SHORT for "M/d/yy" in the US locale. * @param locale the given ulocale. * @return a date formatter. * @stable ICU 3.2 */ public final static DateFormat getDateInstance(int style, ULocale locale) { return new DateFormat(java.text.DateFormat.getDateInstance(getJDKFormatStyle(style), locale.toLocale())); }
/** * Returns the date formatter with the given formatting style * for the given locale. * @param style the given formatting style. For example, * SHORT for "M/d/yy" in the US locale. * @param locale the given ulocale. * @return a date formatter. * @stable ICU 3.2 */ public final static DateFormat getDateInstance(int style, ULocale locale) { return new DateFormat(java.text.DateFormat.getDateInstance(getJDKFormatStyle(style), locale.toLocale())); }
/** * Returns the time formatter with the given formatting style * for the default locale. * @param style the given formatting style. For example, * SHORT for "h:mm a" in the US locale. * @return a time formatter. * @stable ICU 2.0 */ public final static DateFormat getTimeInstance(int style) { return new DateFormat(java.text.DateFormat.getTimeInstance( getJDKFormatStyle(style), ULocale.getDefault(Category.FORMAT).toLocale())); }
/** * Returns the time formatter with the given formatting style * for the default locale. * @param style the given formatting style. For example, * SHORT for "h:mm a" in the US locale. * @return a time formatter. * @stable ICU 2.0 */ public final static DateFormat getTimeInstance(int style) { return new DateFormat(java.text.DateFormat.getTimeInstance( getJDKFormatStyle(style), ULocale.getDefault(Category.FORMAT).toLocale())); }
/** * Returns the date formatter with the given formatting style * for the default locale. * @param style the given formatting style. For example, * SHORT for "M/d/yy" in the US locale. * @return a date formatter. * @stable ICU 2.0 */ public final static DateFormat getDateInstance(int style) { return new DateFormat(java.text.DateFormat.getDateInstance( getJDKFormatStyle(style), ULocale.getDefault(Category.FORMAT).toLocale())); }