Searched refs:dateFormat (Results 1 - 16 of 16) sorted by relevance

/openjdk9/langtools/test/com/sun/javadoc/MetaTag/
H A DMetaTag.java110 private static final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); field in class:MetaTag
113 return dateFormat.format(new Date());
/openjdk9/langtools/test/jdk/javadoc/doclet/MetaTag/
H A DMetaTag.java110 private static final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); field in class:MetaTag
113 return dateFormat.format(new Date());
/openjdk9/jdk/test/java/util/Calendar/
H A DCalendarLimitTest.java146 DateFormat dateFormat = DateFormat.getDateInstance();
147 dateFormat.setCalendar(cal); // Make sure you do this -- same reason as above
148 ((SimpleDateFormat)dateFormat).applyPattern("MMM d, yyyy G");
155 int y = test(m, cal, dateFormat);
166 int y = test(m, cal, dateFormat);
174 test(EARLIEST_SUPPORTED_MILLIS, cal, dateFormat);
175 test(EARLIEST_SUPPORTED_MILLIS-1, cal, dateFormat);
178 test(Long.MIN_VALUE + ONE_DAY, cal, dateFormat);
183 ((SimpleDateFormat)dateFormat).applyPattern("H:mm MMM d, yyyy G");
193 dateFormat
[all...]
/openjdk9/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/lib/
H A DExsltDatetime.java81 SimpleDateFormat dateFormat = new SimpleDateFormat(dt);
83 StringBuffer buff = new StringBuffer(dateFormat.format(datetime));
150 SimpleDateFormat dateFormat = new SimpleDateFormat(formatOut);
151 dateFormat.setLenient(false);
152 String dateOut = dateFormat.format(date);
206 SimpleDateFormat dateFormat = new SimpleDateFormat(formatOut);
207 String out = dateFormat.format(date);
831 SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm");
832 dateFormat.setLenient(false);
833 Date d = dateFormat
[all...]
/openjdk9/jdk/src/java.base/share/classes/java/text/
H A DDateFormat.java820 DateFormat dateFormat = get(adapter, timeStyle, dateStyle, loc);
821 if (dateFormat == null) {
822 dateFormat = get(LocaleProviderAdapter.forJRE(), timeStyle, dateStyle, loc);
824 return dateFormat;
829 DateFormat dateFormat;
831 dateFormat = provider.getDateInstance(dateStyle, loc);
834 dateFormat = provider.getTimeInstance(timeStyle, loc);
836 dateFormat = provider.getDateTimeInstance(dateStyle, timeStyle, loc);
839 return dateFormat;
/openjdk9/jdk/src/java.base/share/classes/sun/security/util/
H A DDisabledAlgorithmConstraints.java556 private static final SimpleDateFormat dateFormat = field in class:DisabledAlgorithmConstraints.DenyAfterConstraint
591 dateFormat.format(denyAfterDate));
627 dateFormat.format(denyAfterDate) + "; " + errmsg +
628 dateFormat.format(currentDate) + extendedMsg(cp),
/openjdk9/jdk/src/jdk.httpserver/share/classes/sun/net/httpserver/
H A DExchangeImpl.java59 private static final ThreadLocal<DateFormat> dateFormat = field in class:ExchangeImpl
213 rspHdrs.set ("Date", dateFormat.get().format (new Date()));
/openjdk9/nashorn/test/script/basic/
H A Drunsunspider.js273 var shortFormat = date.dateFormat("Y-m-d");
274 var longFormat = date.dateFormat("l, F d, Y g:i:s A");
/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/plaf/synth/
H A DSynthTableUI.java745 private Object dateFormat; field in class:SynthTableUI.SynthTableCellRenderer
811 if (dateFormat == null) {
812 dateFormat = DateFormat.getDateInstance();
815 setText((value == null) ? "" : ((Format)dateFormat).format(value));
/openjdk9/jdk/test/java/text/Format/DateFormat/
H A DDateFormatRegression.java636 String dateFormat = "MM/dd/yy HH:mm:ss zzz";
637 SimpleDateFormat fmt = new SimpleDateFormat(dateFormat);
649 String dateFormat = "MM/dd HH:mm:ss zzz yyyy";
650 SimpleDateFormat fmt = new SimpleDateFormat(dateFormat);
/openjdk9/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/
H A DOptions.java970 SimpleDateFormat dateFormat = new SimpleDateFormat(format, Locale.ENGLISH);
974 dateFormat.format(new Date()));
/openjdk9/jdk/src/demo/share/java2d/J2DBench/src/j2dbench/report/
H A DXMLHTMLReporter.java93 private static final SimpleDateFormat dateFormat = field in class:XMLHTMLReporter
225 dateFormat.format(new Date(srsh.getStartTime())) +
229 dateFormat.format(new Date(srsh.getEndTime())) +
H A DHTMLSeriesReporter.java84 private static final SimpleDateFormat dateFormat = field in class:HTMLSeriesReporter
/openjdk9/jdk/src/java.base/share/classes/sun/net/ftp/impl/
H A DFtpClient.java1782 for (SimpleDateFormat dateFormat : dateFormats) {
1784 d = dateFormat.parse(s);
/openjdk9/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/
H A DHtmlDocletWriter.java314 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
317 : "date", dateFormat.format(new Date()));
/openjdk9/langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/
H A DHtmlDocletWriter.java456 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
459 : "date", dateFormat.format(new Date()));

Completed in 310 milliseconds