Home
last modified time | relevance | path

Searched refs:date1 (Results 1 – 14 of 14) sorted by relevance

/external/snakeyaml/src/test/java/org/yaml/snakeyaml/
DChapter2_5Test.java43 Date date1 = (Date) data1.get("Time"); in testExample_2_28() local
44 assertTrue("Date: " + date1, date1.after(date)); in testExample_2_28()
50 assertTrue("Date: " + date3, date3.after(date1)); in testExample_2_28()
/external/icu/icu4c/source/test/cintltst/
Dcdtdptst.c203 UDate date1, date2; in TestRunTogetherPattern985() local
212 date1 = ucal_getNow(); in TestRunTogetherPattern985()
213 now=myDateFormat(format, date1); in TestRunTogetherPattern985()
220 if (!(date2 == date1)) log_err("FAIL\n"); in TestRunTogetherPattern985()
Dccaltst.c1215 UDate date1; in TestDOWProgression() local
1244 date1=ucal_getMillis(cal, &status); in TestDOWProgression()
1246 log_verbose("%s\n", u_austrcpy(tempMsgBuf, myDateFormat(datfor, date1))); in TestDOWProgression()
1254 date1=ucal_getMillis(cal, &status); in TestDOWProgression()
1258 u_austrcpy(tempMsgBuf, myDateFormat(datfor, date1)) ); in TestDOWProgression()
1287 UDate date1; in testZones() local
1318 date1 = ucal_getMillis(gmtcal, &status); in testZones()
1323 log_verbose("date = %s\n", u_austrcpy(tempMsgBuf, myDateFormat(datfor, date1)) ); in testZones()
1326 ucal_setMillis(cal, date1, &status); in testZones()
/external/icu/icu4c/source/samples/dtitvfmtsample/
Ddtitvfmtsample.cpp37 UDate date1 = cal->getTime(status); in dtitvfmtPreDefined() local
45 new DateInterval(date1,date2), in dtitvfmtPreDefined()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateIntervalFormatTest.java1275 … long date1 = 1299090600000L; // 2011-Mar-02 1030 in US/Pacific, 2011-Mar-03 0330 in Asia/Tokyo in TestGetSetTimeZone() local
1277 DateInterval dtitv = new DateInterval(date1, date2); in TestGetSetTimeZone()
1402 long date1 = 1299090600000L; in TestDateIntervalFormatCoverage() local
1404 DateInterval dtitv = new DateInterval(date1, date2); in TestDateIntervalFormatCoverage()
DDateFormatTest.java163 DateFormat date1 = DateFormat.getPatternInstance(actualPattern, in TestPatterns() local
169 String actualLocalPattern1 = ((SimpleDateFormat)date1).toLocalizedPattern(); in TestPatterns()
182 logln(date1.format(testDate) + "\t\t" + Arrays.asList(EXPECTED[i])); in TestPatterns()
1609 Date date1 = new Date(); in TestRunTogetherPattern985() local
1610 now = ((DateFormat) formatter).format(date1); in TestRunTogetherPattern985()
1619 if (date2 == null || !date2.equals(date1)) in TestRunTogetherPattern985()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateIntervalFormatTest.java1274 … long date1 = 1299090600000L; // 2011-Mar-02 1030 in US/Pacific, 2011-Mar-03 0330 in Asia/Tokyo in TestGetSetTimeZone() local
1276 DateInterval dtitv = new DateInterval(date1, date2); in TestGetSetTimeZone()
1401 long date1 = 1299090600000L; in TestDateIntervalFormatCoverage() local
1403 DateInterval dtitv = new DateInterval(date1, date2); in TestDateIntervalFormatCoverage()
DDateFormatTest.java162 DateFormat date1 = DateFormat.getPatternInstance(actualPattern, in TestPatterns() local
168 String actualLocalPattern1 = ((SimpleDateFormat)date1).toLocalizedPattern(); in TestPatterns()
181 logln(date1.format(testDate) + "\t\t" + Arrays.asList(EXPECTED[i])); in TestPatterns()
1608 Date date1 = new Date(); in TestRunTogetherPattern985() local
1609 now = ((DateFormat) formatter).format(date1); in TestRunTogetherPattern985()
1618 if (date2 == null || !date2.equals(date1)) in TestRunTogetherPattern985()
/external/icu/icu4c/source/test/intltest/
Dcalregts.cpp1814 UDate date1 = calendar->getTime(status); in Test4165343() local
1817 logln(UnicodeString("after adding 12 months: ") + date1); in Test4165343()
1828 if (date1 == date2) { in Test4165343()
2292 UDate date1 = cal.getTime(ec); in TestJ438() local
2300 cal.setTime(date1, ec); in TestJ438()
2313 cal2->setTime(date1, ec2); in TestJ438()
2331 fmt.format(date1, t.remove()) + " = " + in TestJ438()
2334 cal.setTime(date1, ec); in TestJ438()
2347 fmt.format(date1, s.remove()) + " + " + in TestJ438()
2353 fmt.format(date1, s.remove()) + " + " + in TestJ438()
Ddtifmtts.cpp333 … UDate date1 = 1299090600000.0; // 2011-Mar-02 1030 in US/Pacific, 2011-Mar-03 0330 in Asia/Tokyo in testAPI() local
336 DateInterval * dtitv12 = new DateInterval(date1, date2); in testAPI()
Ddtfmttst.cpp212 SimpleDateFormat date1(pattern, locale, errorCode); in TestPatterns() local
224 date1.toLocalizedPattern(actualLocalPattern1, errorCode); in TestPatterns()
751 UDate date1 = Calendar::getNow(); in TestRunTogetherPattern985() local
752 ((DateFormat*)formatter)->format(date1, now); in TestRunTogetherPattern985()
759 if (!(date2 == date1)) errln((UnicodeString)"FAIL"); in TestRunTogetherPattern985()
3863 UDate date1 = formatter->parse(itemPtr->dateString, status); in TestNumberAsStringParsing() local
3874 formatter->format(date1, formatted); in TestNumberAsStringParsing()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DCalendarRegressionTest.java1253 Date date1 = calendar.getTime(); in Test4165343() local
1254 logln("after adding 12 months: " + date1); in Test4165343()
1259 if (date1.equals(date2)) { in Test4165343()
1779 Date date1 = cal.getTime();
1783 cal.setTime(date1);
1788 logln("" + date2 + " - " + date1 + " = " +
1791 cal.setTime(date1);
1797 errln("FAIL: " + date1 + " + " +
1801 logln("Ok: " + date1 + " + " +
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DCalendarRegressionTest.java1252 Date date1 = calendar.getTime(); in Test4165343() local
1253 logln("after adding 12 months: " + date1); in Test4165343()
1258 if (date1.equals(date2)) { in Test4165343()
1778 Date date1 = cal.getTime();
1782 cal.setTime(date1);
1787 logln("" + date2 + " - " + date1 + " = " +
1790 cal.setTime(date1);
1796 errln("FAIL: " + date1 + " + " +
1800 logln("Ok: " + date1 + " + " +
/external/python/cpython2/Doc/library/
Ddatetime.rst428 | ``date2 = date1 + timedelta`` | *date2* is ``timedelta.days`` days removed |
429 | | from *date1*. (1) |
431 | ``date2 = date1 - timedelta`` | Computes *date2* such that ``date2 + |
432 | | timedelta == date1``. (2) |
434 | ``timedelta = date1 - date2`` | \(3) |
436 | ``date1 < date2`` | *date1* is considered less than *date2* when |
437 | | *date1* precedes *date2* in time. (4) |
444 ``timedelta.days < 0``. Afterward ``date2 - date1 == timedelta.days``.
450 This isn't quite equivalent to date1 + (-timedelta), because -timedelta in
451 isolation can overflow in cases where date1 - timedelta does not.
[all …]