/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DateFormatTest.java | 23 import java.text.SimpleDateFormat; 75 SimpleDateFormat f2 = (SimpleDateFormat) DateFormat.getDateInstance(); in test_getDateInstance() 76 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class); in test_getDateInstance() 92 SimpleDateFormat f2 = (SimpleDateFormat) DateFormat in test_getDateInstanceI() 94 assertTrue("Wrong class1", f2.getClass() == SimpleDateFormat.class); in test_getDateInstanceI() 102 f2 = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.MEDIUM); in test_getDateInstanceI() 103 assertTrue("Wrong class2", f2.getClass() == SimpleDateFormat.class); in test_getDateInstanceI() 111 f2 = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.LONG); in test_getDateInstanceI() 112 assertTrue("Wrong class3", f2.getClass() == SimpleDateFormat.class); in test_getDateInstanceI() 120 f2 = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.FULL); in test_getDateInstanceI() [all …]
|
D | SimpleDateFormatTest.java | 24 import java.text.SimpleDateFormat; 35 private SimpleDateFormat format; 37 private SimpleDateFormat pFormat; 44 format = new SimpleDateFormat("", Locale.ENGLISH); in setUp() 45 pFormat = new SimpleDateFormat("", Locale.ENGLISH); in setUp() 54 SimpleDateFormat f2 = new SimpleDateFormat(); in test_Constructor() 55 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class); in test_Constructor() 64 SimpleDateFormat f2 = new SimpleDateFormat("yyyy"); in test_ConstructorLjava_lang_String() 65 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class); in test_ConstructorLjava_lang_String() 67 assertTrue("Wrong locale", f2.equals(new SimpleDateFormat("yyyy", Locale.getDefault()))); in test_ConstructorLjava_lang_String() [all …]
|
D | Support_SimpleDateFormat.java | 22 import java.text.SimpleDateFormat; 54 …SimpleDateFormat format = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.DEFAULT, Locale… in t_format_with_FieldPosition() 138 …SimpleDateFormat format = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.DEFAULT, Locale… in t_formatToCharacterIterator()
|
D | MessageFormatTest.java | 35 import java.text.SimpleDateFormat; 459 assertEquals("Wrong time/date format", " MMM d {hh:mm:ss}", ((SimpleDateFormat) (format in test_applyPatternLjava_lang_String() 534 ((SimpleDateFormat) formats[0]).applyPattern("adk123"); in test_clone() 544 SimpleDateFormat date = (SimpleDateFormat) DateFormat.getTimeInstance(); in test_equalsLjava_lang_Object() 546 format2.setFormat(0, new SimpleDateFormat(date.toPattern())); in test_equalsLjava_lang_Object()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | SimpleDateFormatTest.java | 21 import java.text.SimpleDateFormat; 36 SimpleDateFormat sdf = new SimpleDateFormat(); in test2DigitYearStartIsCloned() 164 SimpleDateFormat format = new SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy", Locale.US); in test2038() 180 DateFormat dateFormat = new SimpleDateFormat(fmt, l); in formatDate() 186 SimpleDateFormat sdf = new SimpleDateFormat(fmt, l); in assertCannotParse() 193 SimpleDateFormat sdf = new SimpleDateFormat(fmt, l); in parseDate() 228 SimpleDateFormat sdf = new SimpleDateFormat(fmt, cetUnambiguousLocale); in testFormattingUncommonTimeZoneAbbreviations() 231 sdf = new SimpleDateFormat(fmt, cetUnambiguousLocale); in testFormattingUncommonTimeZoneAbbreviations() 235 sdf = new SimpleDateFormat(fmt, cetAmbiguousLocale); in testFormattingUncommonTimeZoneAbbreviations() 238 sdf = new SimpleDateFormat(fmt, cetAmbiguousLocale); in testFormattingUncommonTimeZoneAbbreviations() [all …]
|
D | DateFormatSymbolsTest.java | 24 import java.text.SimpleDateFormat; 80 SimpleDateFormat sdf = new SimpleDateFormat(fmt, l); in formatDate()
|
D | OldDateFormatTest.java | 23 import java.text.SimpleDateFormat; 93 SimpleDateFormat sdf = new SimpleDateFormat("M/d/yy h:mm a", Locale.US); in test_formatLjava_util_Date() 113 SimpleDateFormat sdf = new SimpleDateFormat("M/d/yy h:mm a", Locale.US); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 351 String formatPattern = ((SimpleDateFormat) format).toPattern(); in test_parseLString()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | DateToStringBenchmark.java | 22 import java.text.SimpleDateFormat; 30 SimpleDateFormat format; 37 format = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy"); in setUp() 48 new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy").format(date); in timeDateToString_Formatter() 54 ((SimpleDateFormat) format.clone()).format(date); in timeDateToString_ClonedFormatter()
|
D | ExpensiveObjectsBenchmark.java | 127 new SimpleDateFormat(); in timeNewSimpleDateFormat() 132 SimpleDateFormat sdf = new SimpleDateFormat(); in timeClonedSimpleDateFormat()
|
/libcore/luni/src/main/java/libcore/net/http/ |
D | HttpDate.java | 21 import java.text.SimpleDateFormat; 38 DateFormat rfc1123 = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US); 78 return new SimpleDateFormat(formatString, Locale.US).parse(value); in parse()
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
D | ASN1UTCTime.java | 27 import java.text.SimpleDateFormat; 98 SimpleDateFormat sdf = new SimpleDateFormat(UTC_PATTERN, Locale.US); in setEncodingContent()
|
D | ASN1GeneralizedTime.java | 27 import java.text.SimpleDateFormat; 87 SimpleDateFormat sdf = new SimpleDateFormat(GEN_PATTERN, Locale.US); in setEncodingContent()
|
/libcore/luni/src/main/java/java/sql/ |
D | Timestamp.java | 21 import java.text.SimpleDateFormat; 417 SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.US); in valueOf()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | TimeZoneTest.java | 19 import java.text.SimpleDateFormat; 63 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); in testPreHistoricInDaylightTime() 97 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); in parseIsoTime()
|
/libcore/luni/src/main/java/java/text/ |
D | SimpleDateFormat.java | 197 public class SimpleDateFormat extends DateFormat { class 228 public SimpleDateFormat() { in SimpleDateFormat() method in SimpleDateFormat 248 public SimpleDateFormat(String pattern) { in SimpleDateFormat() method in SimpleDateFormat 333 public SimpleDateFormat(String template, DateFormatSymbols value) { in SimpleDateFormat() method in SimpleDateFormat 354 public SimpleDateFormat(String template, Locale locale) { in SimpleDateFormat() method in SimpleDateFormat 361 private SimpleDateFormat(Locale locale) { in SimpleDateFormat() method in SimpleDateFormat 404 SimpleDateFormat clone = (SimpleDateFormat) super.clone(); in clone() 432 if (!(object instanceof SimpleDateFormat)) { in equals() 435 SimpleDateFormat simple = (SimpleDateFormat) object; in equals()
|
D | DateFormat.java | 401 return new SimpleDateFormat(LocaleData.get(locale).getDateFormat(style), locale); in getDateInstance() 458 return new SimpleDateFormat(pattern, locale); in getDateTimeInstance() 535 return new SimpleDateFormat(LocaleData.get(locale).getTimeFormat(style), locale); in getTimeInstance()
|
D | MessageFormat.java | 985 return new SimpleDateFormat(buffer.toString(), locale); in parseVariable() 1081 } else if (format instanceof SimpleDateFormat) { in setLocale() 1083 formats[i] = new SimpleDateFormat(((SimpleDateFormat) format) in setLocale() 1135 return ((SimpleDateFormat) format).toPattern(); in decodeSimpleDateFormat() 1158 } else if (format instanceof SimpleDateFormat) { in toPattern()
|
D | DateFormatSymbols.java | 104 this.localPatternChars = SimpleDateFormat.PATTERN_CHARS; in DateFormatSymbols()
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | X509CRLTest.java | 38 import java.text.SimpleDateFormat; 125 final SimpleDateFormat sdf = new SimpleDateFormat("MMM dd HH:mm:ss yyyy zzz", Locale.US); in getCrlDates() 313 SimpleDateFormat formatter = new SimpleDateFormat("dd MMM yyyy HH:mm:ss"); in assertDateEquals()
|
D | X509CertificateTest.java | 49 import java.text.SimpleDateFormat; 173 final SimpleDateFormat sdf = in getRsaCertificateDates() 174 new SimpleDateFormat("MMM dd HH:mm:ss yyyy zzz", Locale.US); in getRsaCertificateDates() 582 SimpleDateFormat formatter = new SimpleDateFormat("dd MMM yyyy HH:mm:ss"); in assertDateEquals()
|
/libcore/luni/src/main/java/java/util/ |
D | Date.java | 26 import java.text.SimpleDateFormat; 672 SimpleDateFormat sdf = new SimpleDateFormat("d MMM y HH:mm:ss 'GMT'", Locale.US); in toGMTString()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_TestWebServer.java | 22 import java.text.SimpleDateFormat; 735 SimpleDateFormat df = new SimpleDateFormat("EE, dd MMM yyyy HH:mm:ss"); in printHeaders()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest.java | 186 ((java.text.SimpleDateFormat) DATEFORM).setDateFormatSymbols(symbols); in setDateFormatSymbols()
|
/libcore/expectations/ |
D | knownfailures.txt | 1497 …description: "The test relies on SimpleDateFormat zzz producing GMT not GMT+00:00 as it does on An…
|