/openjdk7/jdk/src/share/classes/java/text/spi/ |
H A D | DateFormatProvider.java | 28 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 D | Bug4395196.java | 27 *@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 D | Bug4810032.java | 38 DateFormat df = 39 DateFormat.getDateInstance(DateFormat.FULL,Locale.JAPANESE);
|
H A D | Bug5096553.java | 35 import java.text.DateFormat; 47 DateFormat df1 = DateFormat.getDateInstance(DateFormat.MEDIUM, dk); 48 DateFormat df2 = DateFormat.getDateInstance(DateFormat.SHORT, dk);
|
H A D | Bug4994312.java | 30 import java.text.DateFormat; 38 DateFormat.getDateInstance(DateFormat.DEFAULT, Locale.GERMAN);
|
H A D | Bug4762201.java | 42 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 D | Bug4807540.java | 30 import java.text.DateFormat; 41 DateFormat dfSi = DateFormat.getDateInstance (DateFormat.MEDIUM, si);
|
H A D | Bug4685470.java | 49 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 D | DateFormatter.java | 35 * 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 D | Bug6683975.java | 55 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 D | DateFormatProviderTest.java | 35 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 D | DateFormat.java | 56 * {@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 D | MessageFormat.java | 178 * <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 D | SimpleDateFormat.java | 71 * <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 D | Formatter.java | 40 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 D | DateFormatProviderImpl.java | 68 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 D | FooDateFormat.java | 32 public class FooDateFormat extends DateFormat {
|
/openjdk7/jdk/test/java/util/Locale/ |
H A D | ThaiGov.java | 114 DateFormat df = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, locTH);
|
H A D | InternationalBAT.java | 32 import java.text.DateFormat; 136 DateFormat format = 137 DateFormat.getDateInstance(DateFormat.FULL, locale);
|
/openjdk7/jdk/test/com/sun/net/httpserver/ |
H A D | LogFilter.java | 39 DateFormat df; 43 df = DateFormat.getDateTimeInstance();
|
/openjdk7/jdk/src/macosx/classes/com/apple/laf/ |
H A D | AquaSpinnerUI.java | 357 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 D | ExchangeImpl.java | 58 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 D | Ktab.java | 39 import java.text.DateFormat; 319 DateFormat.getDateTimeInstance( 320 DateFormat.SHORT, DateFormat.SHORT).format(
|
/openjdk7/jdk/test/javax/swing/JFormattedTextField/ |
H A D | Test6462562.java | 33 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 D | FtpDirEntry.java | 329 return name + " [" + type + "] (" + user + " / " + group + ") {" + size + "} " + java.text.DateFormat.getDateInstance().format(lastModified);
|