Searched refs:DateFormat (Results 1 - 25 of 45) sorted by relevance

12

/openjdk7/jdk/src/share/classes/java/text/spi/
H A DDateFormatProvider.java28 import java.text.DateFormat;
35 * {@link java.text.DateFormat DateFormat} class.
49 * Returns a new <code>DateFormat</code> instance which formats time
52 * {@link java.text.DateFormat#SHORT DateFormat.SHORT},
53 * {@link java.text.DateFormat#MEDIUM DateFormat.MEDIUM},
54 * {@link java.text.DateFormat#LONG DateFormat
[all...]
/openjdk7/jdk/test/sun/text/resources/Format/
H A DBug4395196.java27 *@summary verify the ko DateFormat
42 DateFormat df =
43 DateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.SHORT,loc);
50 df = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.MEDIUM,loc);
56 df = DateFormat.getDateTimeInstance(DateFormat
[all...]
H A DBug4810032.java38 DateFormat df =
39 DateFormat.getDateInstance(DateFormat.FULL,Locale.JAPANESE);
H A DBug5096553.java35 import java.text.DateFormat;
47 DateFormat df1 = DateFormat.getDateInstance(DateFormat.MEDIUM, dk);
48 DateFormat df2 = DateFormat.getDateInstance(DateFormat.SHORT, dk);
H A DBug4994312.java30 import java.text.DateFormat;
38 DateFormat.getDateInstance(DateFormat.DEFAULT, Locale.GERMAN);
H A DBug4762201.java42 DateFormat df =
43 DateFormat.getTimeInstance(DateFormat.SHORT,loc);
47 df = DateFormat.getTimeInstance(DateFormat.MEDIUM,loc);
50 df = DateFormat.getTimeInstance(DateFormat.LONG,loc);
53 df = DateFormat.getTimeInstance(DateFormat.FULL,loc);
H A DBug4807540.java30 import java.text.DateFormat;
41 DateFormat dfSi = DateFormat.getDateInstance (DateFormat.MEDIUM, si);
H A DBug4685470.java49 DateFormat s = DateFormat.getDateTimeInstance(DateFormat.FULL,DateFormat.FULL,Locale.SIMPLIFIED_CHINESE);
57 DateFormat s = DateFormat.getDateTimeInstance(DateFormat.FULL,DateFormat.FULL,Locale.TRADITIONAL_CHINESE);
69 System.out.println("DateFormat.FULL don't contain pattern for the day of the week : " + patterninfo);
/openjdk7/jdk/src/share/classes/javax/swing/text/
H A DDateFormatter.java35 * formatting by way of an instance of <code>java.text.DateFormat</code>.
46 * @see java.text.DateFormat
53 * <code>new DateFormatter(DateFormat.getDateInstance())</code>.
56 this(DateFormat.getDateInstance());
65 public DateFormatter(DateFormat format) {
78 * @param format DateFormat instance used for converting from/to Strings
80 public void setFormat(DateFormat format) {
85 * Returns the Calendar that <code>DateFormat</code> is associated with,
86 * or if the <code>Format</code> is not a <code>DateFormat</code>
92 if (f instanceof DateFormat) {
[all...]
/openjdk7/jdk/test/java/text/Format/DateFormat/
H A DBug6683975.java55 DateFormat df_th = DateFormat.getDateTimeInstance(style, style, th);
56 DateFormat df_th_TH = DateFormat.getDateTimeInstance(style, style, th_TH);
93 test(DateFormat.FULL);
94 test(DateFormat.LONG);
95 test(DateFormat.MEDIUM);
96 test(DateFormat.SHORT);
/openjdk7/jdk/test/java/util/PluggableLocale/
H A DDateFormatProviderTest.java35 List<Locale> availloc = Arrays.asList(DateFormat.getAvailableLocales());
84 for (int style = DateFormat.FULL; style <= DateFormat.SHORT; style ++) {
86 DateFormat result = DateFormat.getDateTimeInstance(style, style, target);
89 DateFormat providersResult = null;
95 DateFormat jresResult = null;
115 DateFormat df = DateFormat.getDateTimeInstance(DateFormat
[all...]
/openjdk7/jdk/src/share/classes/java/text/
H A DDateFormat.java56 * {@code DateFormat} is an abstract class for date/time formatting subclasses which
63 * <p>{@code DateFormat} provides many class methods for obtaining default date/time
69 * <p>{@code DateFormat} helps you to format and parse dates for any locale.
76 * myString = DateFormat.getDateInstance().format(myDate);
83 * DateFormat df = DateFormat.getDateInstance();
91 * DateFormat df = DateFormat.getDateInstance(DateFormat.LONG, Locale.FRANCE);
93 * <p>You can use a DateFormat t
143 public abstract class DateFormat extends Format { class in inherits:Format
781 protected DateFormat() {} method in class:DateFormat
[all...]
H A DMessageFormat.java178 * <td headers="sc">{@link DateFormat#getDateInstance(int,Locale) DateFormat.getDateInstance}{@code (}{@link DateFormat#DEFAULT}{@code , getLocale())}
181 * <td headers="sc">{@link DateFormat#getDateInstance(int,Locale) DateFormat.getDateInstance}{@code (}{@link DateFormat#SHORT}{@code , getLocale())}
184 * <td headers="sc">{@link DateFormat#getDateInstance(int,Locale) DateFormat.getDateInstance}{@code (}{@link DateFormat#DEFAULT}{@code , getLocale())}
187 * <td headers="sc">{@link DateFormat#getDateInstanc
[all...]
H A DSimpleDateFormat.java71 * <code>getDateTimeInstance</code> in <code>DateFormat</code>. Each
76 * {@link DateFormat}.
267 * DateFormat#getCalendar() getCalendar()}.{@link
405 * @see DateFormat
409 public class SimpleDateFormat extends DateFormat {
540 * For full coverage, use the factory methods in the {@link DateFormat}
551 * For full coverage, use the factory methods in the {@link DateFormat}
567 * For full coverage, use the factory methods in the {@link DateFormat}
611 /* Package-private, called by DateFormat factory methods */
992 * <code>DateFormat
[all...]
/openjdk7/jdk/src/share/classes/sun/tools/jconsole/
H A DFormatter.java40 final static DateFormat timeDF = new SimpleDateFormat("HH:mm");
41 private final static DateFormat timeWithSecondsDF = new SimpleDateFormat("HH:mm:ss");
42 private final static DateFormat dateDF = new SimpleDateFormat("yyyy-MM-dd");
90 static DateFormat getDateTimeFormat(String dtfStr) {
95 dateStyle = DateFormat.SHORT;
97 dateStyle = DateFormat.MEDIUM;
99 dateStyle = DateFormat.LONG;
101 dateStyle = DateFormat.FULL;
105 timeStyle = DateFormat.SHORT;
107 timeStyle = DateFormat
[all...]
/openjdk7/jdk/test/java/util/PluggableLocale/providersrc/
H A DDateFormatProviderImpl.java68 public DateFormat getDateInstance(int style, Locale locale) {
77 public DateFormat getTimeInstance(int style, Locale locale) {
86 public DateFormat getDateTimeInstance(int dateStyle, int timeStyle, Locale locale) {
H A DFooDateFormat.java32 public class FooDateFormat extends DateFormat {
/openjdk7/jdk/test/java/util/Locale/
H A DThaiGov.java114 DateFormat df = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, locTH);
H A DInternationalBAT.java32 import java.text.DateFormat;
136 DateFormat format =
137 DateFormat.getDateInstance(DateFormat.FULL, locale);
/openjdk7/jdk/test/com/sun/net/httpserver/
H A DLogFilter.java39 DateFormat df;
43 df = DateFormat.getDateTimeInstance();
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaSpinnerUI.java357 final DateFormat.Field field = DateFormat.Field.ofCalendarField(model.getCalendarField());
362 if (!select(ftf, iterator, field) && field == DateFormat.Field.HOUR0) {
363 select(ftf, iterator, DateFormat.Field.HOUR1);
372 private boolean select(final JFormattedTextField ftf, final AttributedCharacterIterator iterator, final DateFormat.Field field) {
408 if (!(element instanceof DateFormat.Field)) continue;
411 if (element == DateFormat.Field.HOUR1) {
414 calendarField = ((DateFormat.Field)element).getCalendarField();
/openjdk7/jdk/src/share/classes/sun/net/httpserver/
H A DExchangeImpl.java58 private static final ThreadLocal<DateFormat> dateFormat =
59 new ThreadLocal<DateFormat>() {
60 @Override protected DateFormat initialValue() {
61 DateFormat df = new SimpleDateFormat(pattern, Locale.US);
/openjdk7/jdk/src/windows/classes/sun/security/krb5/internal/tools/
H A DKtab.java39 import java.text.DateFormat;
319 DateFormat.getDateTimeInstance(
320 DateFormat.SHORT, DateFormat.SHORT).format(
/openjdk7/jdk/test/javax/swing/JFormattedTextField/
H A DTest6462562.java33 import java.text.DateFormat;
74 TestFormattedTextField create(DateFormat format) {
308 Date date(DateFormat format, String spec) {
317 DateFormat format = new SimpleDateFormat("MM/dd/yyyy", Locale.US);
/openjdk7/jdk/src/share/classes/sun/net/ftp/
H A DFtpDirEntry.java329 return name + " [" + type + "] (" + user + " / " + group + ") {" + size + "} " + java.text.DateFormat.getDateInstance().format(lastModified);

Completed in 59 milliseconds

12