/external/snakeyaml/src/test/java/org/yaml/snakeyaml/ |
D | Chapter2_5Test.java | 43 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/ |
D | cdtdptst.c | 203 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()
|
D | ccaltst.c | 1215 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/ |
D | dtitvfmtsample.cpp | 37 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/ |
D | DateIntervalFormatTest.java | 1275 … 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()
|
D | DateFormatTest.java | 163 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/ |
D | DateIntervalFormatTest.java | 1274 … 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()
|
D | DateFormatTest.java | 162 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/ |
D | calregts.cpp | 1814 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()
|
D | dtifmtts.cpp | 333 … 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()
|
D | dtfmttst.cpp | 212 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/ |
D | CalendarRegressionTest.java | 1253 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/ |
D | CalendarRegressionTest.java | 1252 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/ |
D | datetime.rst | 428 | ``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 …]
|