Home | History | Annotate | Download | only in text

Lines Matching defs:SimpleDateFormat

23 import java.text.SimpleDateFormat;
61 SimpleDateFormat sdf = new SimpleDateFormat();
70 SimpleDateFormat sdf = new SimpleDateFormat();
200 SimpleDateFormat format = new SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy", Locale.US);
220 DateFormat dateFormat = new SimpleDateFormat(fmt, l);
226 SimpleDateFormat sdf = new SimpleDateFormat(fmt, l);
234 * Parse a date with a SimpleDateFormat set to use UTC. If fmt contains a pattern for zone the
243 SimpleDateFormat sdf = new SimpleDateFormat(fmt, l);
284 SimpleDateFormat sdf = new SimpleDateFormat(fmt, cetUnambiguousLocale);
287 sdf = new SimpleDateFormat(fmt, cetUnambiguousLocale);
291 sdf = new SimpleDateFormat(fmt, cetAmbiguousLocale);
294 sdf = new SimpleDateFormat(fmt, cetAmbiguousLocale);
303 // Create a SimpleDateFormat that defaults to America/Chicago...
306 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z");
317 // A new SimpleDateFormat will default to America/Chicago...
318 sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z");
333 sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
339 sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
349 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm zzzz", Locale.US);
357 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm zzzz", Locale.US);
366 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm zzzz", Locale.US);
374 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm zzzz", Locale.US);
384 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss zzzz", l);
391 new SimpleDateFormat("z", Locale.FRANCE).parse("UTC");
392 new SimpleDateFormat("z", Locale.US).parse("UTC");
397 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", new Locale("ar", "EG"));
415 SimpleDateFormat sdf = new SimpleDateFormat("d. MMM yyyy H:mm", Locale.GERMAN);
423 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S");
429 sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSSSS");
436 SimpleDateFormat.getDateInstance(DateFormat.SHORT, null);
441 SimpleDateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, null);
446 SimpleDateFormat.getTimeInstance(DateFormat.SHORT, null);
460 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
477 SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSXXX");
489 SimpleDateFormat df = new SimpleDateFormat("dd MMM yyyy HH:mm:ss zzz");
502 SimpleDateFormat sdf = new SimpleDateFormat("dd MM yyyy HH:mm zzz", symbols);
515 SimpleDateFormat sdf = new SimpleDateFormat("zzzz", symbols);
524 sdf = new SimpleDateFormat("zzzz", symbols);
531 sdf = new SimpleDateFormat("zzzz", symbols);
569 // Tests that Android's SimpleDateFormat provides localized short strings for UTC
580 // Tests that Android's SimpleDateFormat provides localized long strings for UTC
592 DateFormat dateFormat = new SimpleDateFormat(timeZonePattern, locale);
608 // Tests that Android's SimpleDateFormat can parse localized short strings for UTC
618 // Tests that Android's SimpleDateFormat can parse localized long strings for UTC
638 DateFormat formatter = new SimpleDateFormat(basePattern, locale);
639 DateFormat parser = new SimpleDateFormat(fullPattern, locale);
676 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy z", Locale.ENGLISH);
683 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy z", Locale.ENGLISH);
695 SimpleDateFormat isoFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
716 // Tests that SimpleDateFormat with 'b' and 'B' pattern symbols can't parse any date
732 SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern, Locale.US);
734 Date d = simpleDateFormat.parse(source, parsePosition);
740 SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern, locale);
741 simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
742 assertEquals(expected, simpleDateFormat.format(date));
745 private void checkTimeZoneParsingErrorIndex(SimpleDateFormat dateFormat) {
764 * {@link SimpleDateFormat#isGregorianCalendar()}.
767 DateFormat dateFormat = new SimpleDateFormat(fmt, Locale.US);