Home | History | Annotate | Download | only in format

Lines Matching refs:simpleDateFormat

55 import android.icu.text.SimpleDateFormat;
175 String actualLocalPattern1 = ((SimpleDateFormat)date1).toLocalizedPattern();
176 String actualLocalPattern2 = ((SimpleDateFormat)date2).toLocalizedPattern();
208 * Instantiate a SimpleDateFormat set up to produce a full time
211 SimpleDateFormat sdf = new SimpleDateFormat("zzzz");
304 SimpleDateFormat fullFmt = new SimpleDateFormat("EEE MMM dd HH:mm:ss.SSS zzz yyyy G");
305 SimpleDateFormat fmt = new SimpleDateFormat("dd-MMM-yy h:mm:ss 'o''clock' a z", Locale.ENGLISH);
309 * SimpleDateFormat(pattern, locale) Construct a SimpleDateDateFormat using
312 * ps. the Method Calendar.getTime() used by SimpleDateFormat.parse() always
371 dateFormats[2] = new SimpleDateFormat(buf.toString(), Locale.US);
378 dateFormats[3] = new SimpleDateFormat(buf.toString(), Locale.US);
470 logln(" Pattern = " + ((SimpleDateFormat) df).toPattern());
669 final SimpleDateFormat[] formats = {
670 new SimpleDateFormat(basepat + "v", en),
671 new SimpleDateFormat(basepat + "vvvv", en),
672 new SimpleDateFormat(basepat + "zzz", en),
673 new SimpleDateFormat(basepat + "zzzz", en)
676 final SimpleDateFormat univ = new SimpleDateFormat("yyyy MM dd HH:mm zzz", en);
683 for (SimpleDateFormat sdf : formats) {
756 SimpleDateFormat testfmt = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
773 SimpleDateFormat fmt = new SimpleDateFormat(info[3], l);
1569 SimpleDateFormat f = new SimpleDateFormat();
1582 public void tryPat994(SimpleDateFormat format, String pat, String str, Date expected) {
1614 SimpleDateFormat formatter = new SimpleDateFormat(format);
1635 SimpleDateFormat fmt;
1637 fmt = new SimpleDateFormat("yyyy/MM/dd");
1643 fmt = new SimpleDateFormat("yyyyMMdd");
1652 private void _testIt917(SimpleDateFormat fmt, String str, Date expected) {
1672 logln("Pattern " + ((SimpleDateFormat) fmt).toPattern());
1728 SimpleDateFormat formatter = new SimpleDateFormat(bigD);
1734 formatter = new SimpleDateFormat(littleD);
1757 SimpleDateFormat sdf = (SimpleDateFormat)DateFormat.getDateInstance();
1763 public void tryPattern(SimpleDateFormat sdf, Date d, String pattern, Date expected) {
1788 SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy 'at' hh:mm:ss a zzz", Locale.US);
1851 SimpleDateFormat dateParse = new SimpleDateFormat("", Locale.US);
1942 logln("Parsing \""+ str+ "\" with "+ ((SimpleDateFormat) fmt).toPattern()
1960 formatter = new SimpleDateFormat("dd-MMM-yyyyy HH:mm", Locale.UK);
2017 DateFormat fmt = new SimpleDateFormat(DATA[i + 2], Locale.ENGLISH);
2255 SimpleDateFormat f = null;
2258 f = new SimpleDateFormat("Yesterday");
2274 SimpleDateFormat fmt = new SimpleDateFormat("EEEE, dd MMMM yyyy h:mm:ss a",
2298 DateFormat df = new SimpleDateFormat("aaNNccc");
2310 SimpleDateFormat fmt = new SimpleDateFormat("dd/MM/yy"); // opposite of text
2332 SimpleDateFormat longChineseDateFormat =
2333 (SimpleDateFormat)chineseCalendar.getDateTimeFormat(DateFormat.LONG, DateFormat.LONG, Locale.CHINA );
2419 DateFormat sdfmt = new SimpleDateFormat();
2464 DateFormat fmt = new SimpleDateFormat("k");
2485 DateFormat fmt = new SimpleDateFormat("MM/dd/yy z");
2608 SimpleDateFormat fmt = new SimpleDateFormat("aabbcc");
2619 SimpleDateFormat fmt = new SimpleDateFormat("'aabbcc");
2629 SimpleDateFormat fmt = new SimpleDateFormat("MM/dd/yy z");
2643 SimpleDateFormat fmt = new SimpleDateFormat("MM/dd/yy z");
2669 SimpleDateFormat fmt = new SimpleDateFormat("MM/dd/yy z");
3138 SimpleDateFormat fmt = new SimpleDateFormat("", loc);
3139 SimpleDateFormat ref = new SimpleDateFormat(data[i++], loc);
3140 SimpleDateFormat gotfmt = new SimpleDateFormat("G yyyy MM dd HH:mm:ss z", loc);
3207 SimpleDateFormat ref = new SimpleDateFormat(data[0], loc);
3210 SimpleDateFormat fmt = new SimpleDateFormat("", loc);
3291 SimpleDateFormat univ = new SimpleDateFormat("EE G yyyy MM dd HH:mm:ss.SSS zzz", loc);
3293 SimpleDateFormat ref = new SimpleDateFormat(data[0], loc);
3296 SimpleDateFormat fmt = new SimpleDateFormat("", loc);
3430 // Test AttributedCharacterIterator returned by SimpleDateFormat
3432 SimpleDateFormat sdf = new SimpleDateFormat(patterns[i]);
3458 // SimpleDateFormat#formatToCharacterIterator never set multiple
3586 * Test for checking SimpleDateFormat/DateFormatSymbols creation
3602 SimpleDateFormat[] formatters = new SimpleDateFormat[5];
3623 if (df instanceof SimpleDateFormat) {
3624 formatters[0] = (SimpleDateFormat)df;
3632 if (df instanceof SimpleDateFormat) {
3633 formatters[1] = (SimpleDateFormat)df;
3641 if (df instanceof SimpleDateFormat) {
3642 formatters[2] = (SimpleDateFormat)df;
3648 // SimpleDateFormat constructor
3649 formatters[3] = new SimpleDateFormat(testPattern, testLocales[i]);
3651 // SimpleDateFormat with DateFormatSymbols
3653 formatters[4] = new SimpleDateFormat(testPattern, dfs, testLocales[i]);
3655 // All SimpleDateFormat instances should produce the exact
3879 * Tests the constructor public SimpleDateFormat(String pattern, String override, ULocale loc)
3884 SimpleDateFormat sdf = new SimpleDateFormat("", "", null);
3885 sdf = (SimpleDateFormat) sdf.clone();
3887 errln("SimpleDateFormat(String pattern, String override, ULocale loc) "
3888 + "was not suppose to return an exception when constructing a new " + "SimpleDateFormat object.");
3983 SimpleDateFormat fmt1 = new SimpleDateFormat("GGG yyyy-MM-dd'T'HH:mm:ss'Z");
4022 SimpleDateFormat sdf = new SimpleDateFormat(pattern,override,ULocale.CHINA);
4046 SimpleDateFormat fmt = new SimpleDateFormat("MM/dd/yy z");
4077 fmt = new SimpleDateFormat("MM d", new ULocale("en_US"));
4140 SimpleDateFormat sdf = new SimpleDateFormat(data.pattern);
4252 DateFormat dfmt = (item.style >= 0)? DateFormat.getDateInstance(item.style, locale): new SimpleDateFormat(customPatterns[-item.style - 1], locale);
4374 dfmt = new SimpleDateFormat(item.pattern, locale);
4434 SimpleDateFormat sdfmt = (SimpleDateFormat) DateFormat.getDateInstance(item.style, locale);
4453 SimpleDateFormat simpleDateFormat = new SimpleDateFormat("YYEEEww");
4454 simpleDateFormat.set2DigitYearStart(new GregorianCalendar(1999,0,1).getTime());
4463 simpleDateFormat.parse(dateText, cal, pp);
4469 simpleDateFormat.applyPattern("Y");
4471 String result = simpleDateFormat.format(cal.getTime());
4533 SimpleDateFormat sdfmt = new SimpleDateFormat(item.pattern, locale);
4537 SimpleDateFormat sdfmtClone = (SimpleDateFormat)sdfmt.clone();
4540 ", sdfmt.clone() != sdfmt (for SimpleDateFormat)");
4724 SimpleDateFormat sdfmt = new SimpleDateFormat(item.pattern, item.locale);
4853 SimpleDateFormat sdfmt = new SimpleDateFormat();
4945 SimpleDateFormat sdf = new SimpleDateFormat("hh:mm:ss bbb", Locale.ENGLISH);
5064 SimpleDateFormat sdf = new SimpleDateFormat("hh:mm:ss BBB");
5161 SimpleDateFormat sdf = new SimpleDateFormat("", ULocale.GERMANY);
5174 sdf = new SimpleDateFormat("", new ULocale("ee"));
5184 sdf = new SimpleDateFormat("", new ULocale("root"));
5193 sdf = new SimpleDateFormat("", new ULocale(""));
5202 sdf = new SimpleDateFormat("", new ULocale("en_US"));
5215 sdf = new SimpleDateFormat("", new ULocale("es_CO"));
5221 sdf = new SimpleDateFormat("", new ULocale("es"));
5228 // which is called in SimpleDateFormat.format for patterns that include 'B'.
5229 sdf = new SimpleDateFormat("", new ULocale("en@calendar=buddhist"));
5246 SimpleDateFormat sdf = new SimpleDateFormat("hh:mm 'ss' bbbb");
5322 SimpleDateFormat sdf = new SimpleDateFormat("");