Home
last modified time | relevance | path

Searched refs:date2 (Results 1 – 17 of 17) sorted by relevance

/external/icu/icu4c/source/samples/dtitvfmtsample/
Ddtitvfmtsample.cpp40 UDate date2 = cal->getTime(status); in dtitvfmtPreDefined() local
46 new DateInterval(date1,date2), in dtitvfmtPreDefined()
47 new DateInterval(date2,date3), in dtitvfmtPreDefined()
/external/icu/icu4c/source/test/cintltst/
Dcdtdptst.c203 UDate date1, date2; in TestRunTogetherPattern985() local
216 date2 = udat_parse(format, now, u_strlen(now), &pos, &status); in TestRunTogetherPattern985()
217 if (date2 == 0) log_verbose("Parse stopped at : %d\n", pos); in TestRunTogetherPattern985()
218 else then=myDateFormat(format, date2); in TestRunTogetherPattern985()
220 if (!(date2 == date1)) log_err("FAIL\n"); in TestRunTogetherPattern985()
/external/cldr/tools/java/org/unicode/cldr/util/
DVerifyZones.java463 long date2 = getStandardDate(tz); in addZones() local
465 … String formattedZone = tzformatter.getFormattedZone(tzid, pattern.toString(), date2); in addZones()
476 date2 = date2 == date ? date6 : date; // reverse for final 2 items in addZones()
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
DTimestampTest.java643 Date date2 = new Date(time);
644 Timestamp timestamp2 = new Timestamp(date2.getTime());
645 assertEquals(0, timestamp2.compareTo(date2));
/external/icu/icu4c/source/test/intltest/
Dcalregts.cpp1840 UDate date2 = calendar->getTime(status); in Test4165343() local
1843 logln(UnicodeString("after adding one year : ") + date2); in Test4165343()
1844 if (date1 == date2) { in Test4165343()
2312 UDate date2 = cal.getTime(ec); in TestJ438() local
2319 int32_t dy = cal.fieldDifference(date2, UCAL_YEAR, ec); in TestJ438()
2320 int32_t dm = cal.fieldDifference(date2, UCAL_MONTH, ec); in TestJ438()
2321 int32_t dd = cal.fieldDifference(date2, UCAL_DATE, ec); in TestJ438()
2331 int32_t dy2 = cal2->fieldDifference(date2, Calendar::YEAR, ec2); in TestJ438()
2332 int32_t dm2 = cal2->fieldDifference(date2, Calendar::MONTH, ec2); in TestJ438()
2333 int32_t dd2 = cal2->fieldDifference(date2, Calendar::DATE, ec2); in TestJ438()
[all …]
Ddtifmtts.cpp334 … UDate date2 = 1299115800000.0; // 2011-Mar-02 1730 in US/Pacific, 2011-Mar-03 1030 in Asia/Tokyo in testAPI() local
336 DateInterval * dtitv12 = new DateInterval(date1, date2); in testAPI()
Ddtfmttst.cpp214 SimpleDateFormat date2(pattern, locale, errorCode); in TestPatterns() local
215 date2.adoptCalendar(Calendar::createInstance(locale, errorCode)); in TestPatterns()
226 date2.toLocalizedPattern(actualLocalPattern2, errorCode); in TestPatterns()
756 UDate date2 = formatter->parse(now, pos); in TestRunTogetherPattern985() local
757 if (date2 == 0) then = UnicodeString("Parse stopped at ") + pos.getIndex(); in TestRunTogetherPattern985()
758 else ((DateFormat*)formatter)->format(date2, then); in TestRunTogetherPattern985()
760 if (!(date2 == date1)) errln((UnicodeString)"FAIL"); in TestRunTogetherPattern985()
Dcaltest.cpp3326 UDate date2 = is_cal->getTime(status); in TestIslamicUmAlQura() local
3328 if(date2 != date) { in TestIslamicUmAlQura()
3329 errln("before(%f) and after(%f) dates don't match up!",date, date2); in TestIslamicUmAlQura()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DCalendarRegressionTest.java1263 Date date2 = calendar.getTime(); in Test4165343() local
1264 logln("after adding one year : " + date2); in Test4165343()
1265 if (date1.equals(date2)) { in Test4165343()
1787 Date date2 = cal.getTime();
1790 int dy = cal.fieldDifference(date2, Calendar.YEAR);
1791 int dm = cal.fieldDifference(date2, Calendar.MONTH);
1792 int dd = cal.fieldDifference(date2, Calendar.DATE);
1794 logln("" + date2 + " - " + date1 + " = " +
1802 if (!date2.equals(date22)) {
1805 date22 + ", exp " + date2);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DCalendarRegressionTest.java1266 Date date2 = calendar.getTime(); in Test4165343() local
1267 logln("after adding one year : " + date2); in Test4165343()
1268 if (date1.equals(date2)) { in Test4165343()
1790 Date date2 = cal.getTime();
1793 int dy = cal.fieldDifference(date2, Calendar.YEAR);
1794 int dm = cal.fieldDifference(date2, Calendar.MONTH);
1795 int dd = cal.fieldDifference(date2, Calendar.DATE);
1797 logln("" + date2 + " - " + date1 + " = " +
1805 if (!date2.equals(date22)) {
1808 date22 + ", exp " + date2);
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateIntervalFormatTest.java1278 … long date2 = 1299115800000L; // 2011-Mar-02 1730 in US/Pacific, 2011-Mar-03 1030 in Asia/Tokyo in TestGetSetTimeZone() local
1279 DateInterval dtitv = new DateInterval(date1, date2); in TestGetSetTimeZone()
1405 long date2 = 1299115800000L; in TestDateIntervalFormatCoverage() local
1406 DateInterval dtitv = new DateInterval(date1, date2); in TestDateIntervalFormatCoverage()
DDateFormatTest.java168 DateFormat date2 = DateFormat.getPatternInstance(Calendar.getInstance(locale), in TestPatterns() local
173 String actualLocalPattern2 = ((SimpleDateFormat)date2).toLocalizedPattern(); in TestPatterns()
1616 Date date2 = formatter.parse(now, pos); in TestRunTogetherPattern985() local
1617 if (date2 == null) in TestRunTogetherPattern985()
1620 then = ((DateFormat) formatter).format(date2); in TestRunTogetherPattern985()
1622 if (date2 == null || !date2.equals(date1)) in TestRunTogetherPattern985()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateIntervalFormatTest.java1281 … long date2 = 1299115800000L; // 2011-Mar-02 1730 in US/Pacific, 2011-Mar-03 1030 in Asia/Tokyo in TestGetSetTimeZone() local
1282 DateInterval dtitv = new DateInterval(date1, date2); in TestGetSetTimeZone()
1408 long date2 = 1299115800000L; in TestDateIntervalFormatCoverage() local
1409 DateInterval dtitv = new DateInterval(date1, date2); in TestDateIntervalFormatCoverage()
DDateFormatTest.java171 DateFormat date2 = DateFormat.getPatternInstance(Calendar.getInstance(locale), in TestPatterns() local
176 String actualLocalPattern2 = ((SimpleDateFormat)date2).toLocalizedPattern(); in TestPatterns()
1619 Date date2 = formatter.parse(now, pos); in TestRunTogetherPattern985() local
1620 if (date2 == null) in TestRunTogetherPattern985()
1623 then = ((DateFormat) formatter).format(date2); in TestRunTogetherPattern985()
1625 if (date2 == null || !date2.equals(date1)) in TestRunTogetherPattern985()
/external/python/cpython2/Doc/library/
Ddatetime.rst428 | ``date2 = date1 + timedelta`` | *date2* is ``timedelta.days`` days removed |
431 | ``date2 = date1 - timedelta`` | Computes *date2* such that ``date2 + |
434 | ``timedelta = date1 - date2`` | \(3) |
436 | ``date1 < date2`` | *date1* is considered less than *date2* when |
437 | | *date1* precedes *date2* in time. (4) |
443 *date2* is moved forward in time if ``timedelta.days > 0``, or backward if
444 ``timedelta.days < 0``. Afterward ``date2 - date1 == timedelta.days``.
446 :exc:`OverflowError` is raised if ``date2.year`` would be smaller than
456 timedelta.microseconds are 0, and date2 + timedelta == date1 after.
459 In other words, ``date1 < date2`` if and only if ``date1.toordinal() <
[all …]
/external/javaparser/javaparser-testing/src/test/resources/com/github/javaparser/bdd/
Dparsing_scenarios.story289 (Comparator<ChronoLocalDate>) (date1, date2) -> {
290 return Long.compare(date1.toEpochDay(), date2.toEpochDay());
302 (Comparator<ChronoLocalDate> & Serializable) (date1, date2) -> {
303 return Long.compare(date1.toEpochDay(), date2.toEpochDay());
/external/python/cpython3/Doc/library/
Ddatetime.rst500 | ``date2 = date1 + timedelta`` | *date2* is ``timedelta.days`` days removed |
503 | ``date2 = date1 - timedelta`` | Computes *date2* such that ``date2 + |
506 | ``timedelta = date1 - date2`` | \(3) |
508 | ``date1 < date2`` | *date1* is considered less than *date2* when |
509 | | *date1* precedes *date2* in time. (4) |
515 *date2* is moved forward in time if ``timedelta.days > 0``, or backward if
516 ``timedelta.days < 0``. Afterward ``date2 - date1 == timedelta.days``.
518 :exc:`OverflowError` is raised if ``date2.year`` would be smaller than
526 timedelta.microseconds are 0, and date2 + timedelta == date1 after.
529 In other words, ``date1 < date2`` if and only if ``date1.toordinal() <
[all …]