Home | History | Annotate | Download | only in util

Lines Matching refs:SimpleDateFormat

25 import java.text.SimpleDateFormat;
46 private static final SimpleDateFormat[] DATE_FORMATS = {
49 new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'", Locale.US),
50 new SimpleDateFormat("yyyyMMdd", Locale.US),
51 new SimpleDateFormat("yyyyMMdd'T'HHmmssSSS'Z'", Locale.US),
52 new SimpleDateFormat("yyyyMMdd'T'HHmmss'Z'", Locale.US),
53 new SimpleDateFormat("yyyyMMdd'T'HHmm'Z'", Locale.US),
57 for (SimpleDateFormat format : DATE_FORMATS) {
93 SimpleDateFormat f = DATE_FORMATS[i];
199 * Returns a SimpleDateFormat object without the year fields by using a regular expression
201 * pattern cannot be reconverted into a SimpleDateFormat, it uses the provided context to
203 * either "MMMM dd" or "dd MMMM" converted into a SimpleDateFormat.
206 final String pattern = ((SimpleDateFormat) SimpleDateFormat.getDateInstance(
214 return new SimpleDateFormat(pattern.replaceAll(yearPattern, ""));
216 return new SimpleDateFormat(