Home
last modified time | relevance | path

Searched refs:sdf (Results 1 – 11 of 11) sorted by relevance

/libcore/benchmarks/src/benchmarks/regression/
DSimpleDateFormatBenchmark.java35 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd z"); in time_createFormatWithTimeZone() local
40 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd z"); in time_parseWithTimeZoneShort() local
42 sdf.parse("2000.01.01 PST"); in time_parseWithTimeZoneShort()
47 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd zzzz"); in time_parseWithTimeZoneLong() local
49 sdf.parse("2000.01.01 Pacific Standard Time"); in time_parseWithTimeZoneLong()
54 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd"); in time_parseWithoutTimeZone() local
56 sdf.parse("2000.01.01"); in time_parseWithoutTimeZone()
62 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd z"); in time_createAndParseWithTimeZoneShort() local
63 sdf.parse("2000.01.01 PST"); in time_createAndParseWithTimeZoneShort()
69 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd zzzz"); in time_createAndParseWithTimeZoneLong() local
[all …]
DExpensiveObjectsBenchmark.java134 SimpleDateFormat sdf = new SimpleDateFormat(); in timeClonedSimpleDateFormat() local
136 sdf.clone(); in timeClonedSimpleDateFormat()
/libcore/luni/src/test/java/libcore/java/text/
DSimpleDateFormatTest.java71 SimpleDateFormat sdf = new SimpleDateFormat(); in testDefaultConstructor_localeUS() local
76 assertEquals(referencedDateFormat.format(date), sdf.format(date)); in testDefaultConstructor_localeUS()
82 SimpleDateFormat sdf = new SimpleDateFormat(); in test2DigitYearStartIsCloned() local
83 sdf.setTimeZone(UTC); in test2DigitYearStartIsCloned()
85 Date originalDate = sdf.get2DigitYearStart(); in test2DigitYearStartIsCloned()
86 assertNotSame(sdf.get2DigitYearStart(), originalDate); in test2DigitYearStartIsCloned()
87 assertEquals(sdf.get2DigitYearStart(), originalDate); in test2DigitYearStartIsCloned()
89 assertFalse(sdf.get2DigitYearStart().equals(originalDate)); in test2DigitYearStartIsCloned()
92 sdf.set2DigitYearStart(newDate); in test2DigitYearStartIsCloned()
93 assertNotSame(sdf.get2DigitYearStart(), newDate); in test2DigitYearStartIsCloned()
[all …]
DDateFormatSymbolsTest.java89 SimpleDateFormat sdf = new SimpleDateFormat(fmt, l); in formatDate() local
90 sdf.setDateFormatSymbols(dfs); in formatDate()
91 sdf.setTimeZone(TimeZone.getTimeZone("UTC")); in formatDate()
92 return sdf.format(new Date(0)); in formatDate()
DDateFormatTest.java66 SimpleDateFormat sdf = new SimpleDateFormat(expectedPattern, locale); in checkTimePattern() local
67 String expectedDateString = sdf.format(current); in checkTimePattern()
DOldDateFormatTest.java97 SimpleDateFormat sdf = new SimpleDateFormat("M/d/yy h:mm" + AM_PM_SPACE_CHAR + "a", in test_formatLjava_util_Date() local
99 assertEquals("Incorrect date format", sdf.format(current), dtf); 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() local
124 assertEquals("Incorrect date format", sdf.format(current), sb.toString()); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
/libcore/luni/src/test/java/libcore/highmemorytest/java/text/
DSimpleDateFormatTest.java45 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss zzzz", locale); in testLocales() local
46 sdf.format(new Date(0)); in testLocales()
/libcore/luni/src/test/java/libcore/java/util/
DTimeZoneTest.java95 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); in testPreHistoricInDaylightTime_old() local
96 Date date = sdf.parse("1902-11-01T00:00:00.000+0800"); in testPreHistoricInDaylightTime_old()
103 date = sdf.parse("1902-06-01T00:00:00.000+0800"); in testPreHistoricInDaylightTime_old()
152 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); in parseIsoTime() local
153 Date date = sdf.parse(isoTime); in parseIsoTime()
/libcore/ojluni/src/main/java/sun/security/util/
DDerOutputStream.java503 SimpleDateFormat sdf = new SimpleDateFormat(pattern, Locale.US); in putTime() local
504 sdf.setTimeZone(tz); in putTime()
505 byte[] time = (sdf.format(d)).getBytes("ISO-8859-1"); in putTime()
/libcore/luni/src/test/java/libcore/java/security/cert/
DX509CRLTest.java144 final SimpleDateFormat sdf = new SimpleDateFormat("MMM dd HH:mm:ss yyyy zzz", Locale.US); in getCrlDates() local
155 final Date value = sdf.parse(line.substring(index + 1)); in getCrlDates()
DX509CertificateTest.java189 final SimpleDateFormat sdf = in getRsaCertificateDates() local
196 final Date startDate = sdf.parse(line.substring(index + 1)); in getRsaCertificateDates()
201 final Date endDate = sdf.parse(line.substring(index + 1)); in getRsaCertificateDates()