/** * Creates a {@link DateFormat} object that can be used to format dates in * the calendar system specified by <code>cal</code>. * <p> * @param cal The calendar system for which a date format is desired. * * @param dateStyle The type of date format desired. This can be * {@link DateFormat#SHORT}, {@link DateFormat#MEDIUM}, * etc. * * @param locale The locale for which the date format is desired. * @stable ICU 2.0 */ static final public DateFormat getDateInstance(Calendar cal, int dateStyle, Locale locale) { DateFormat df = getDateInstance(dateStyle, locale); df.setCalendar(cal); return df; }
/** * Creates a {@link DateFormat} object that can be used to format dates in * the calendar system specified by <code>cal</code>. * <p> * @param cal The calendar system for which a date format is desired. * * @param dateStyle The type of date format desired. This can be * {@link DateFormat#SHORT}, {@link DateFormat#MEDIUM}, * etc. * * @param locale The locale for which the date format is desired. * @stable ICU 3.2 */ static final public DateFormat getDateInstance(Calendar cal, int dateStyle, ULocale locale) { DateFormat df = getDateInstance(dateStyle, locale); df.setCalendar(cal); return df; }
/** * Creates a {@link DateFormat} object that can be used to format dates in * the calendar system specified by <code>cal</code>. * <p> * @param cal The calendar system for which a date format is desired. * * @param dateStyle The type of date format desired. This can be * {@link DateFormat#SHORT}, {@link DateFormat#MEDIUM}, * etc. * * @param locale The locale for which the date format is desired. * @stable ICU 3.2 */ static final public DateFormat getDateInstance(Calendar cal, int dateStyle, ULocale locale) { DateFormat df = getDateInstance(dateStyle, locale); df.setCalendar(cal); return df; }
/** * Creates a {@link DateFormat} object that can be used to format times in * the calendar system specified by <code>cal</code>. * <p> * <b>Note:</b> When this functionality is moved into the core JDK, this method * will probably be replaced by a new overload of {@link DateFormat#getInstance}. * <p> * @param cal The calendar system for which a time format is desired. * * @param timeStyle The type of time format desired. This can be * {@link DateFormat#SHORT}, {@link DateFormat#MEDIUM}, * etc. * * @param locale The locale for which the time format is desired. * * @see DateFormat#getTimeInstance * @stable ICU 3.2 */ static final public DateFormat getTimeInstance(Calendar cal, int timeStyle, ULocale locale) { DateFormat df = getTimeInstance(timeStyle, locale); df.setCalendar(cal); return df; }
/** * Creates a {@link DateFormat} object that can be used to format dates in * the calendar system specified by <code>cal</code>. * <p> * @param cal The calendar system for which a date format is desired. * * @param dateStyle The type of date format desired. This can be * {@link DateFormat#SHORT}, {@link DateFormat#MEDIUM}, * etc. * * @param locale The locale for which the date format is desired. * @stable ICU 2.0 */ static final public DateFormat getDateInstance(Calendar cal, int dateStyle, Locale locale) { DateFormat df = getDateInstance(dateStyle, locale); df.setCalendar(cal); return df; }
/** * Creates a {@link DateFormat} object that can be used to format times in * the calendar system specified by <code>cal</code>. * <p> * <b>Note:</b> When this functionality is moved into the core JDK, this method * will probably be replaced by a new overload of {@link DateFormat#getInstance}. * <p> * @param cal The calendar system for which a time format is desired. * * @param timeStyle The type of time format desired. This can be * {@link DateFormat#SHORT}, {@link DateFormat#MEDIUM}, * etc. * * @param locale The locale for which the time format is desired. * * @see DateFormat#getTimeInstance * @stable ICU 3.2 */ static final public DateFormat getTimeInstance(Calendar cal, int timeStyle, ULocale locale) { DateFormat df = getTimeInstance(timeStyle, locale); df.setCalendar(cal); return df; }
/** * Creates a {@link DateFormat} object that can be used to format dates and times in * the calendar system specified by <code>cal</code>. * <p> * <b>Note:</b> When this functionality is moved into the core JDK, this method * will probably be replaced by a new overload of {@link DateFormat#getInstance}. * <p> * @param cal The calendar system for which a date/time format is desired. * * @param dateStyle The type of date format desired. This can be * {@link DateFormat#SHORT}, {@link DateFormat#MEDIUM}, * etc. * * @param timeStyle The type of time format desired. This can be * {@link DateFormat#SHORT}, {@link DateFormat#MEDIUM}, * etc. * * @param locale The locale for which the date/time format is desired. * * @see DateFormat#getDateTimeInstance * @stable ICU 3.2 */ static final public DateFormat getDateTimeInstance(Calendar cal, int dateStyle, int timeStyle, ULocale locale) { DateFormat df = getDateTimeInstance(dateStyle, timeStyle, locale); df.setCalendar(cal); return df; }
/** * Creates a {@link DateFormat} object that can be used to format times in * the calendar system specified by <code>cal</code>. * <p> * <b>Note:</b> When this functionality is moved into the core JDK, this method * will probably be replaced by a new overload of {@link DateFormat#getInstance}. * <p> * @param cal The calendar system for which a time format is desired. * * @param timeStyle The type of time format desired. This can be * {@link DateFormat#SHORT}, {@link DateFormat#MEDIUM}, * etc. * * @param locale The locale for which the time format is desired. * * @see DateFormat#getTimeInstance * @stable ICU 2.0 */ static final public DateFormat getTimeInstance(Calendar cal, int timeStyle, Locale locale) { DateFormat df = getTimeInstance(timeStyle, locale); df.setCalendar(cal); return df; }
/** * Creates a {@link DateFormat} object that can be used to format times in * the calendar system specified by <code>cal</code>. * <p> * <b>Note:</b> When this functionality is moved into the core JDK, this method * will probably be replaced by a new overload of {@link DateFormat#getInstance}. * <p> * @param cal The calendar system for which a time format is desired. * * @param timeStyle The type of time format desired. This can be * {@link DateFormat#SHORT}, {@link DateFormat#MEDIUM}, * etc. * * @param locale The locale for which the time format is desired. * * @see DateFormat#getTimeInstance * @stable ICU 2.0 */ static final public DateFormat getTimeInstance(Calendar cal, int timeStyle, Locale locale) { DateFormat df = getTimeInstance(timeStyle, locale); df.setCalendar(cal); return df; }
/** * Creates a {@link DateFormat} object that can be used to format dates and times in * the calendar system specified by <code>cal</code>. * <p> * <b>Note:</b> When this functionality is moved into the core JDK, this method * will probably be replaced by a new overload of {@link DateFormat#getInstance}. * <p> * @param cal The calendar system for which a date/time format is desired. * * @param dateStyle The type of date format desired. This can be * {@link DateFormat#SHORT}, {@link DateFormat#MEDIUM}, * etc. * * @param timeStyle The type of time format desired. This can be * {@link DateFormat#SHORT}, {@link DateFormat#MEDIUM}, * etc. * * @param locale The locale for which the date/time format is desired. * * @see DateFormat#getDateTimeInstance * @stable ICU 2.0 */ static final public DateFormat getDateTimeInstance(Calendar cal, int dateStyle, int timeStyle, Locale locale) { DateFormat df = getDateTimeInstance(dateStyle, timeStyle, locale); df.setCalendar(cal); return df; }
/** * Creates a {@link DateFormat} object that can be used to format dates and times in * the calendar system specified by <code>cal</code>. * <p> * <b>Note:</b> When this functionality is moved into the core JDK, this method * will probably be replaced by a new overload of {@link DateFormat#getInstance}. * <p> * @param cal The calendar system for which a date/time format is desired. * * @param dateStyle The type of date format desired. This can be * {@link DateFormat#SHORT}, {@link DateFormat#MEDIUM}, * etc. * * @param timeStyle The type of time format desired. This can be * {@link DateFormat#SHORT}, {@link DateFormat#MEDIUM}, * etc. * * @param locale The locale for which the date/time format is desired. * * @see DateFormat#getDateTimeInstance * @stable ICU 3.2 */ static final public DateFormat getDateTimeInstance(Calendar cal, int dateStyle, int timeStyle, ULocale locale) { DateFormat df = getDateTimeInstance(dateStyle, timeStyle, locale); df.setCalendar(cal); return df; }
/** * Creates a {@link DateFormat} object that can be used to format dates and times in * the calendar system specified by <code>cal</code>. * <p> * <b>Note:</b> When this functionality is moved into the core JDK, this method * will probably be replaced by a new overload of {@link DateFormat#getInstance}. * <p> * @param cal The calendar system for which a date/time format is desired. * * @param dateStyle The type of date format desired. This can be * {@link DateFormat#SHORT}, {@link DateFormat#MEDIUM}, * etc. * * @param timeStyle The type of time format desired. This can be * {@link DateFormat#SHORT}, {@link DateFormat#MEDIUM}, * etc. * * @param locale The locale for which the date/time format is desired. * * @see DateFormat#getDateTimeInstance * @stable ICU 2.0 */ static final public DateFormat getDateTimeInstance(Calendar cal, int dateStyle, int timeStyle, Locale locale) { DateFormat df = getDateTimeInstance(dateStyle, timeStyle, locale); df.setCalendar(cal); return df; }
result.setCalendar(cal); return result;