Home | History | Annotate | Download | only in format

Lines Matching refs:date

17     @summary test International Date Format
24 import java.util.Date;
41 // Values in milliseconds (== Date)
51 //private static final byte DATE = TIME + 1; //The variable is never used
52 //private static final byte DATE_TIME = DATE + 1; //The variable is never used
97 fTestName = "Date test " + dateStyle + " (" + localeName + ")";
102 errln("FAIL: localeTest date getTimeInstance exception");
115 errln("FAIL: localeTest date/time getDateTimeInstance exception");
129 Date now = new Date();
130 tryDate(new Date(0));
131 tryDate(new Date((long) 1278161801778.0));
135 tryDate(new Date(now.getTime() + 6*30*ONEDAY));
137 Date limit = new Date(now.getTime() * 10); // Arbitrary limit
139 // tryDate(new Date(floor(randDouble() * limit)));
140 tryDate(new Date((long) (randDouble() * limit.getTime())));
154 private void tryDate(Date theDate) {
156 Date[] date = new Date[DEPTH];
165 if (i == 0) date[i] = theDate;
168 date[i] = fFormat.parse(string[i-1].toString());
178 fFormat.format(date[i], string[i], position);
180 if (dateMatch == 0 && date[i] == date[i-1]) dateMatch = i;
181 else if (dateMatch > 0 && date[i] != date[i-1]) {
183 errln("********** FAIL: Date mismatch after match.");
201 errln("********** FAIL: No string and/or date match within " + fLimit + " iterations.");
207 logln("" + k + ": " + date[k] + " F> " + string[k] + " P> ");