public synchronized DateFormat getDateFormat() { if (dateFormat == null) dateFormat = DateFormat.getInstance(); return dateFormat; } }
private synchronized DateFormat getDateFormat() { if (dateFormat == null) dateFormat = DateFormat.getInstance(); return dateFormat; }
public synchronized DateFormat getDateFormat() { if (dateFormat == null) dateFormat = DateFormat.getInstance(); return dateFormat; } }
private synchronized DateFormat getDateFormat() { if (dateFormat == null) dateFormat = DateFormat.getInstance(); return dateFormat; }
/** * Returns a default date/time formatter that uses the SHORT style for both the * date and the time. * * @param cal The calendar system for which a date/time format is desired. * @stable ICU 2.0 */ static final public DateFormat getInstance(Calendar cal) { return getInstance(cal, ULocale.getDefault(Category.FORMAT)); }
/** * Convenience overload. * @stable ICU 2.0 */ static final public DateFormat getInstance(Calendar cal) { return getInstance(cal, ULocale.getDefault(Category.FORMAT)); }
/** * Convenience overload. * @stable ICU 2.0 */ static final public DateFormat getInstance(Calendar cal) { return getInstance(cal, ULocale.getDefault(Category.FORMAT)); }
public String getName() { IFileRevision rev = (IFileRevision)getAdapter(IFileRevision.class); if (rev != null) return NLS.bind(TeamUIMessages.nameAndRevision, new String[] { rev.getName(), rev.getContentIdentifier()}); IFileState state = (IFileState)getAdapter(IFileState.class); if (state != null) return state.getName() + " " + DateFormat.getInstance().format(new Date(state.getModificationTime())) ; //$NON-NLS-1$ return storage.getName(); }
@Override public String getName() { IFileRevision rev = getAdapter(IFileRevision.class); if (rev != null) return NLS.bind(TeamUIMessages.nameAndRevision, new String[] { rev.getName(), rev.getContentIdentifier()}); IFileState state = getAdapter(IFileState.class); if (state != null) return state.getName() + " " + DateFormat.getInstance().format(new Date(state.getModificationTime())) ; //$NON-NLS-1$ return storage.getName(); }
Date fdate = DateFormat.getInstance().parse(tmp); return DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM).format(fdate);