Lines Matching refs:date
149 * Instantiate a date so we can display the time zone name.
463 tryPat994(f, "yy/MM/dd HH:mm:ss", "97/01/17 10:11:42", date(97, 1 - 1, 17, 10, 11, 42));
482 UDate date = format->parse(str, status);
483 if (U_FAILURE(status) || date == null)
491 ((DateFormat*)format)->format(date, f);
492 logln(UnicodeString(" parse(") + str + ") -> " + dateToString(date));
495 !(date == expected)) errln((UnicodeString)"FAIL: Expected null");//" + expected);
552 testIt917(fmt, myDate, date(97, 2 - 1, 3));
556 testIt917(fmt, myDate, date(97, 3 - 1, 4));
604 UDate june = date(97, UCAL_JUNE, 15);
605 UDate july = date(97, UCAL_JULY, 15);
641 UDate expLittleD = date(95, 0, 1, 5, 1, 29);
673 UDate expected = date(year, month, day);
674 logln((UnicodeString)"Test Date: " + dateToString(today));
722 UDate currentTime_1 = date(97, UCAL_AUGUST, 13, 10, 42, 28);
750 dataerrln("could not create date time instance");
841 UDate date;
851 date = dateParse->parse(s, status);
869 date = dateParse->parse(s, parsePosition);
874 if (date == 0) {
882 ((DateFormat*)dateParse)->format(date, result);
920 parse2DigitYear(fmt, "5/6/17", date(117, UCAL_JUNE, 5));
921 parse2DigitYear(fmt, "4/6/34", date(34, UCAL_JUNE, 4));
952 UDate date;
954 date= 859248000000.0;
955 logln((UnicodeString)"Date 1997/3/25 00:00 GMT: " + date);
963 UnicodeString temp; formatter->format(date, temp);
968 if (tempDate != date) errln((UnicodeString)"FAIL: Expected " + dateToString(date));
972 errln((UnicodeString)"Date Formatter throws: " + (int32_t)status);
1057 UDate testDate = date(97, UCAL_SEPTEMBER, 15);
1066 logln((UnicodeString)"Date set to : " + dateToString(testDate));
1076 logln((UnicodeString)"Date Formated with French Locale " + out);
1081 logln((UnicodeString)"Date Formated with US Locale " + out);
1092 DateFormat *date=0, *time=0, *full=0;
1099 /* Create a formatter for date fields. */
1100 date = DateFormat::createDateInstance(DateFormat::kShort, Locale::getUS());
1101 if (date == NULL) {
1129 /* Parse the date */
1133 date->parse(str, *cal, pos);
1166 delete date;
1246 UDate date = -9896080848000.0;
1250 fmt.format(date, str);
1253 if (date != d2) {
1614 * 'f': Format date [i+2] (as parsed using pattern [0]) and expect string [i+3].
1615 * 'p': Parse string [i+3] and expect date [i+4].
1618 * 'F': Format date [i+2] and expect string [i+3],
1619 * then parse string [i+3] and expect date [i+2].
1622 * 'p': Parse string [i+2] and expect date [i+3].
1623 * 'f': Format date [i+3] and expect string [i+4].
1649 UDate date = ref.parse(ctou(datestr), ec);
1653 fmt.format(date, str.remove()));
1656 date = ref.parse(ctou(datestr), ec);
1661 univ.format(date, str.remove()),
1670 UDate date = ref.parse(ctou(datestr), ec);
1675 univ.format(date, str.remove()),
1682 fmt.format(date, str.remove()));
1688 UDate date = ref.parse(ctou(datestr), ec);
1692 fmt.format(date, str.remove()));
1697 univ.format(date, str.remove()),
1722 * Format date [i+1] and expect string [i+2].
1747 UDate date = ref.parse(ctou(datestr), ec);
1751 fmt.format(date, str.remove()));
1765 // non-generic timezone string influences dst offset even if wrong for date/time
1932 // Relative Date Tests
1984 c->add(Calendar::DATE,daysdelta,status);
2054 dataerrln("FAIL: Can't create Relative date instance");
2084 dataerrln("FAIL: Can't create Relative date instance");
3012 + "\n Date string=" + refStr
3043 logln("PASS: rel date/rel time failed");
3045 errln("FAIL: rel date/rel time created, should have failed.");
3063 UDate dt1 = date(2008-1900, UCAL_JUNE, 10, 12, 00);
3087 UDate dt2 = date(2008-1900, UCAL_JUNE, 10, 12, 00);
3111 UDate dt3 = date(2008-1900, UCAL_JUNE, 10, 12, 00);
3135 UDate dt4 = date(2008-1900, UCAL_JUNE, 10, 12, 00);
3162 UDate dt = date(2008-1900, UCAL_JUNE, 10, 12, 00);
3186 errln((UnicodeString)"FAIL: Improper formated date: " + strf);
3189 errln((UnicodeString)"FAIL: Improper formated date: " + strl);
3193 errln((UnicodeString)"FAIL: Improper formated date: " + strm);
3196 errln((UnicodeString)"FAIL: Improper formated date: " + strs);