Home | History | Annotate | Download | only in format

Lines Matching defs:dateFormat

28 import com.ibm.icu.text.DateFormat;
35 * Performs round-trip tests for DateFormat
41 private SimpleDateFormat dateFormat;
51 dateFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss.SSS zzz yyyy G");
55 final Locale[] avail = DateFormat.getAvailableLocales();
57 logln("DateFormat available locales: " + locCount);
83 case DateFormat.SHORT :
85 case DateFormat.MEDIUM :
87 case DateFormat.LONG :
89 case DateFormat.FULL :
120 for (style = DateFormat.FULL; style <= DateFormat.SHORT; ++style) {
123 DateFormat df = DateFormat.getDateInstance(style, loc);
128 for (style = DateFormat.FULL; style <= DateFormat.SHORT; ++style) {
131 DateFormat df = DateFormat.getTimeInstance(style, loc);
136 for (int dstyle = DateFormat.FULL; dstyle <= DateFormat.SHORT; ++dstyle) {
137 for (int tstyle = DateFormat.FULL; tstyle <= DateFormat.SHORT; ++tstyle) {
140 DateFormat df = DateFormat.getDateTimeInstance(dstyle, tstyle, loc);
147 private void _test(DateFormat fmt, boolean timeOnly) {
150 errln("DateFormat wasn't a SimpleDateFormat");
255 logln((j > 0 ? " P> " : " ") + dateFormat.format(d[j], temp, pos)