Home | History | Annotate | Download | only in intltest

Lines Matching refs:date

151          * Instantiate a date so we can display the time zone name.
493 tryPat994(f, "yy/MM/dd HH:mm:ss", "97/01/17 10:11:42", date(97, 1 - 1, 17, 10, 11, 42));
512 UDate date = format->parse(str, status);
513 if (U_FAILURE(status) || date == null)
521 ((DateFormat*)format)->format(date, f);
522 logln(UnicodeString(" parse(") + str + ") -> " + dateToString(date));
525 !(date == expected)) errln((UnicodeString)"FAIL: Expected null");//" + expected);
590 testIt917(fmt, myDate, date(97, 2 - 1, 3));
594 testIt917(fmt, myDate, date(97, 3 - 1, 4));
642 UDate june = date(97, UCAL_JUNE, 15);
643 UDate july = date(97, UCAL_JULY, 15);
679 UDate expLittleD = date(95, 0, 1, 5, 1, 29);
715 UDate expected = date(year, month, day);
716 logln((UnicodeString)"Test Date: " + dateToString(today));
768 UDate currentTime_1 = date(97, UCAL_AUGUST, 13, 10, 42, 28);
796 dataerrln("could not create date time instance");
887 UDate date;
897 date = dateParse->parse(s, status);
915 date = dateParse->parse(s, parsePosition);
920 if (date == 0) {
928 ((DateFormat*)dateParse)->format(date, result);
966 parse2DigitYear(fmt, "5/6/17", date(117, UCAL_JUNE, 5));
967 parse2DigitYear(fmt, "4/6/34", date(34, UCAL_JUNE, 4));
998 UDate date;
1000 date= 859248000000.0;
1001 logln((UnicodeString)"Date 1997/3/25 00:00 GMT: " + date);
1009 UnicodeString temp; formatter->format(date, temp);
1014 if (tempDate != date) errln((UnicodeString)"FAIL: Expected " + dateToString(date));
1018 errln((UnicodeString)"Date Formatter throws: " + (int32_t)status);
1106 UDate testDate = date(97, UCAL_SEPTEMBER, 15);
1115 logln((UnicodeString)"Date set to : " + dateToString(testDate));
1125 logln((UnicodeString)"Date Formated with French Locale " + out);
1130 logln((UnicodeString)"Date Formated with US Locale " + out);
1141 DateFormat *date=0, *time=0, *full=0;
1148 /* Create a formatter for date fields. */
1149 date = DateFormat::createDateInstance(DateFormat::kShort, Locale::getUS());
1150 if (date == NULL) {
1178 /* Parse the date */
1182 date->parse(str, *cal, pos);
1215 delete date;
1298 UDate date = -9896080848000.0;
1305 fmt.format(date, str);
1308 if (date != d2) {
1669 * 'f': Format date [i+2] (as parsed using pattern [0]) and expect string [i+3].
1670 * 'p': Parse string [i+3] and expect date [i+4].
1673 * 'F': Format date [i+2] and expect string [i+3],
1674 * then parse string [i+3] and expect date [i+2].
1677 * 'p': Parse string [i+2] and expect date [i+3].
1678 * 'f': Format date [i+3] and expect string [i+4].
1707 UDate date = ref.parse(ctou(datestr), ec);
1711 fmt.format(date, str.remove()));
1714 date = ref.parse(ctou(datestr), ec);
1719 univ.format(date, str.remove()),
1728 UDate date = ref.parse(ctou(datestr), ec);
1733 univ.format(date, str.remove()),
1740 fmt.format(date, str.remove()));
1746 UDate date = ref.parse(ctou(datestr), ec);
1750 fmt.format(date, str.remove()));
1755 univ.format(date, str.remove()),
1780 * Format date [i+1] and expect string [i+2].
1808 UDate date = ref.parse(ctou(datestr), ec);
1812 fmt.format(date, str.remove()));
1826 // non-generic timezone string influences dst offset even if wrong for date/time
1996 // Relative Date Tests
2048 c->add(Calendar::DATE,daysdelta,status);
2118 dataerrln("FAIL: Can't create Relative date instance");
2148 dataerrln("FAIL: Can't create Relative date instance");
3076 + "\n Date string=" + refStr
3107 logln("PASS: rel date/rel time failed");
3109 errln("FAIL: rel date/rel time created, should have failed.");
3127 UDate dt1 = date(2008-1900, UCAL_JUNE, 10, 12, 00);
3151 UDate dt2 = date(2008-1900, UCAL_JUNE, 10, 12, 00);
3175 UDate dt3 = date(2008-1900, UCAL_JUNE, 10, 12, 00);
3199 UDate dt4 = date(2008-1900, UCAL_JUNE, 10, 12, 00);
3226 UDate dt = date(2008-1900, UCAL_JUNE, 10, 12, 00);
3251 errln((UnicodeString)"FAIL: Improper formatted date: " + strf);
3254 errln((UnicodeString)"FAIL: Improper formatted date: " + strl);
3259 errln((UnicodeString)"FAIL: Improper formatted date: " + strm );
3263 errln((UnicodeString)"FAIL: Improper formatted date: " + strs);
3373 // parse string to date
3377 // format date back to string
3402 UDate thedate = date(2009-1900, UCAL_JULY, 28);