Home
last modified time | relevance | path

Searched refs:SimpleDateFormat (Results 1 – 25 of 32) sorted by relevance

12

/libcore/benchmarks/src/benchmarks/regression/
DSimpleDateFormatBenchmark.java22 import java.text.SimpleDateFormat;
35 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd z"); in time_createFormatWithTimeZone()
40 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd z"); in time_parseWithTimeZoneShort()
47 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd zzzz"); in time_parseWithTimeZoneLong()
54 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd"); in time_parseWithoutTimeZone()
62 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd z"); in time_createAndParseWithTimeZoneShort()
69 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd zzzz"); in time_createAndParseWithTimeZoneLong()
75 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd z"); in time_formatWithTimeZoneShort()
82 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd zzzz"); in time_formatWithTimeZoneLong()
97 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd zzzz", locale); in main()
DExpensiveObjectsBenchmark.java24 import java.text.SimpleDateFormat;
129 new SimpleDateFormat(); in timeNewSimpleDateFormat()
134 SimpleDateFormat sdf = new SimpleDateFormat(); in timeClonedSimpleDateFormat()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDateFormatTest.java23 import java.text.SimpleDateFormat;
81 SimpleDateFormat f2 = (SimpleDateFormat) DateFormat.getDateInstance(); in test_getDateInstance()
82 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class); in test_getDateInstance()
97 SimpleDateFormat f2 = (SimpleDateFormat) DateFormat in test_getDateInstanceI()
99 assertTrue("Wrong class1", f2.getClass() == SimpleDateFormat.class); in test_getDateInstanceI()
107 f2 = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.MEDIUM); in test_getDateInstanceI()
108 assertTrue("Wrong class2", f2.getClass() == SimpleDateFormat.class); in test_getDateInstanceI()
116 f2 = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.LONG); in test_getDateInstanceI()
117 assertTrue("Wrong class3", f2.getClass() == SimpleDateFormat.class); in test_getDateInstanceI()
125 f2 = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.FULL); in test_getDateInstanceI()
[all …]
DSimpleDateFormatTest.java24 import java.text.SimpleDateFormat;
48 SimpleDateFormat f2 = new SimpleDateFormat(); in test_Constructor()
49 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class); in test_Constructor()
58 SimpleDateFormat f2 = new SimpleDateFormat("yyyy"); in test_ConstructorLjava_lang_String()
59 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class); in test_ConstructorLjava_lang_String()
61 assertTrue("Wrong locale", f2.equals(new SimpleDateFormat("yyyy", Locale.getDefault()))); in test_ConstructorLjava_lang_String()
67 new SimpleDateFormat("this is an invalid simple date format"); in test_ConstructorLjava_lang_String()
75 new SimpleDateFormat(null); in test_ConstructorLjava_lang_String()
87 SimpleDateFormat f2 = new SimpleDateFormat("y'y'yy", symbols); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols()
88 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols()
[all …]
DSupport_SimpleDateFormat.java22 import java.text.SimpleDateFormat;
54SimpleDateFormat format = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.DEFAULT, Locale… in t_format_with_FieldPosition()
138SimpleDateFormat format = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.DEFAULT, Locale… in t_formatToCharacterIterator()
DMessageFormatTest.java35 import java.text.SimpleDateFormat;
463 assertEquals("Wrong time/date format", " MMM d {hh:mm:ss}", ((SimpleDateFormat) (format in test_applyPatternLjava_lang_String()
538 ((SimpleDateFormat) formats[0]).applyPattern("adk123"); in test_clone()
548 SimpleDateFormat date = (SimpleDateFormat) DateFormat.getTimeInstance(); in test_equalsLjava_lang_Object()
550 format2.setFormat(0, new SimpleDateFormat(date.toPattern())); in test_equalsLjava_lang_Object()
/libcore/ojluni/src/test/java/text/Format/DateFormat/
DSimpleDateFormatPatternTest.java37 import java.text.SimpleDateFormat;
165 new SimpleDateFormat(pattern); in testIllegalArgumentException1()
174 new SimpleDateFormat(pattern, new DateFormatSymbols()); in testIllegalArgumentException2()
183 new SimpleDateFormat(pattern, Locale.getDefault()); in testIllegalArgumentException3()
192 new SimpleDateFormat().applyPattern(pattern); in testIllegalArgumentException4()
199 new SimpleDateFormat(pattern); in testIllegalArgumentException_enUS()
200 new SimpleDateFormat(pattern, new DateFormatSymbols()); in testIllegalArgumentException_enUS()
201 new SimpleDateFormat(pattern, Locale.getDefault()); in testIllegalArgumentException_enUS()
202 new SimpleDateFormat().applyPattern(pattern); in testIllegalArgumentException_enUS()
212 new SimpleDateFormat(null); in testNullPointerException1()
[all …]
/libcore/luni/src/test/java/libcore/java/text/
DSimpleDateFormatTest.java25 import java.text.SimpleDateFormat;
71 SimpleDateFormat sdf = new SimpleDateFormat(); in testDefaultConstructor_localeUS()
82 SimpleDateFormat sdf = new SimpleDateFormat(); in test2DigitYearStartIsCloned()
212 SimpleDateFormat format = new SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy", Locale.US); in test2038()
232 DateFormat dateFormat = new SimpleDateFormat(fmt, l); in formatDate()
238 SimpleDateFormat sdf = new SimpleDateFormat(fmt, l); in assertCannotParse()
255 SimpleDateFormat sdf = new SimpleDateFormat(fmt, l); in parseDate()
296 SimpleDateFormat sdf = new SimpleDateFormat(fmt, cetUnambiguousLocale); in testFormattingUncommonTimeZoneAbbreviations()
299 sdf = new SimpleDateFormat(fmt, cetUnambiguousLocale); in testFormattingUncommonTimeZoneAbbreviations()
303 sdf = new SimpleDateFormat(fmt, cetAmbiguousLocale); in testFormattingUncommonTimeZoneAbbreviations()
[all …]
DDateFormatTest.java30 import java.text.SimpleDateFormat;
66 SimpleDateFormat sdf = new SimpleDateFormat(expectedPattern, locale); in checkTimePattern()
DDateFormatSymbolsTest.java25 import java.text.SimpleDateFormat;
89 SimpleDateFormat sdf = new SimpleDateFormat(fmt, l); in formatDate()
DOldDateFormatTest.java25 import java.text.SimpleDateFormat;
97 SimpleDateFormat sdf = new SimpleDateFormat("M/d/yy h:mm" + AM_PM_SPACE_CHAR + "a", in test_formatLjava_util_Date()
122 SimpleDateFormat sdf = new SimpleDateFormat("M/d/yy h:mm" + AM_PM_SPACE_CHAR + "a", in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
362 String formatPattern = ((SimpleDateFormat) format).toPattern(); in test_parseLString()
/libcore/luni/src/test/java/libcore/highmemorytest/java/text/
DSimpleDateFormatTest.java23 import java.text.SimpleDateFormat;
45 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss zzzz", locale); in testLocales()
DDateFormatTest.java27 import java.text.SimpleDateFormat;
96 SimpleDateFormat simpleDateFormat = (SimpleDateFormat) dateFormat; in assertSupportedSymbols()
/libcore/luni/src/main/java/libcore/net/http/
DHttpDate.java22 import java.text.SimpleDateFormat;
39 DateFormat rfc1123 = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US);
80 return new SimpleDateFormat(formatString, Locale.US).parse(value); in parse()
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/
DFileURLConnection.java42 import java.text.SimpleDateFormat;
133 SimpleDateFormat fo = in initializeHeaders()
134 new SimpleDateFormat ("EEE, dd MMM yyyy HH:mm:ss 'GMT'", Locale.US); in initializeHeaders()
/libcore/luni/src/test/java/libcore/libcore/icu/
DLocaleDataTest.java27 import java.text.SimpleDateFormat;
130 SimpleDateFormat df = new SimpleDateFormat("MMM", Locale.ROOT); in test_rootLocale_useRealRootLocaleData()
143 SimpleDateFormat df = new SimpleDateFormat("MMM", Locale.ROOT); in test_rootLocale_notUseRealRootLocaleData()
/libcore/luni/src/test/java/libcore/java/util/
DTimeZoneTest.java20 import java.text.SimpleDateFormat;
95 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); in testPreHistoricInDaylightTime_old()
152 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); in parseIsoTime()
DSimpleTimeZoneTest.java21 import java.text.SimpleDateFormat;
275 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ", in formatCalendar()
/libcore/ojluni/src/main/java/sun/security/util/
DDerOutputStream.java31 import java.text.SimpleDateFormat;
503 SimpleDateFormat sdf = new SimpleDateFormat(pattern, Locale.US); in putTime()
/libcore/luni/src/test/java/libcore/java/security/cert/
DX509CRLTest.java45 import java.text.SimpleDateFormat;
144 final SimpleDateFormat sdf = new SimpleDateFormat("MMM dd HH:mm:ss yyyy zzz", Locale.US); in getCrlDates()
363 SimpleDateFormat formatter = new SimpleDateFormat("dd MMM yyyy HH:mm:ss"); in assertDateEquals()
/libcore/ojluni/src/main/java/java/text/
DSimpleDateFormat.java478 public class SimpleDateFormat extends DateFormat { class
626 public SimpleDateFormat() { in SimpleDateFormat() method in SimpleDateFormat
644 SimpleDateFormat(int timeStyle, int dateStyle, Locale locale) { in SimpleDateFormat() method in SimpleDateFormat
683 public SimpleDateFormat(String pattern) in SimpleDateFormat() method in SimpleDateFormat
700 public SimpleDateFormat(String pattern, Locale locale) in SimpleDateFormat() method in SimpleDateFormat
722 public SimpleDateFormat(String pattern, DateFormatSymbols formatSymbols) in SimpleDateFormat() method in SimpleDateFormat
2980 SimpleDateFormat other = (SimpleDateFormat) super.clone(); in clone()
3010 SimpleDateFormat that = (SimpleDateFormat) obj; in equals()
DDateFormat.java872 return new SimpleDateFormat(timeStyle, dateStyle, loc); in get()
874 return new SimpleDateFormat("M/d/yy h:mm a"); in get()
/libcore/support/src/test/java/tests/support/
DSupport_TestWebServer.java22 import java.text.SimpleDateFormat;
737 SimpleDateFormat df = new SimpleDateFormat("EE, dd MMM yyyy HH:mm:ss z"); in printHeaders()
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
DFtpClient.java33 import java.text.SimpleDateFormat;
294 private SimpleDateFormat df = new SimpleDateFormat("yyyyMMddhhmmss");
1763 private static SimpleDateFormat[] dateFormats = new SimpleDateFormat[MDTMformats.length];
1767 dateFormats[i] = new SimpleDateFormat(MDTMformats[i]);
1789 for (SimpleDateFormat dateFormat : dateFormats) { in getLastModified()
/libcore/luni/src/main/java/libcore/icu/
DSimpleDateFormatData.java21 import java.text.SimpleDateFormat;

12