Home
last modified time | relevance | path

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

/external/python/pybind11/tests/
Dtest_chrono.py14 date2 = datetime.datetime.today()
20 diff_python = abs(date2 - date0)
21 diff = abs(date1 - date2)
35 date2 = m.test_chrono2(date1)
38 assert isinstance(date2, datetime.datetime)
41 diff = abs(date1 - date2)
52 date2 = datetime2.date()
57 assert isinstance(date2, datetime.date)
61 diff = abs(date1 - date2)
67 assert date1.year == date2.year
[all …]
/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
217 date2 = udat_parse(format, now, u_strlen(now), &pos, &status); in TestRunTogetherPattern985()
218 if (date2 == 0) log_verbose("Parse stopped at : %d\n", pos); in TestRunTogetherPattern985()
219 else then=myDateFormat(format, date2); in TestRunTogetherPattern985()
221 if (!(date2 == date1)) log_err("FAIL\n"); in TestRunTogetherPattern985()
/external/mtools/
Ddirectory.c103 time_t date2 = date; in mk_entry() local
107 now = localtime(&date2); in mk_entry()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/jdk/
DAtomicTypeSerializationTest.java37 public AtomicReference<Date> date2; field in AtomicTypeSerializationTest.ContextualOptionals
121 input.date2 = new AtomicReference<>(new Date(0L)); in testContextualAtomicReference()
/external/cldr/tools/java/org/unicode/cldr/util/
DVerifyZones.java414 long date2 = getStandardDate(tz); in addZones() local
416 … String formattedZone = tzformatter.getFormattedZone(tzid, pattern.toString(), date2); in addZones()
427 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.cpp1867 UDate date2 = calendar->getTime(status); in Test4165343() local
1870 logln(UnicodeString("after adding one year : ") + date2); in Test4165343()
1871 if (date1 == date2) { in Test4165343()
2336 UDate date2 = cal.getTime(ec); in TestJ438() local
2343 int32_t dy = cal.fieldDifference(date2, UCAL_YEAR, ec); in TestJ438()
2344 int32_t dm = cal.fieldDifference(date2, UCAL_MONTH, ec); in TestJ438()
2345 int32_t dd = cal.fieldDifference(date2, UCAL_DATE, ec); in TestJ438()
2355 int32_t dy2 = cal2->fieldDifference(date2, Calendar::YEAR, ec2); in TestJ438()
2356 int32_t dm2 = cal2->fieldDifference(date2, Calendar::MONTH, ec2); in TestJ438()
2357 int32_t dd2 = cal2->fieldDifference(date2, Calendar::DATE, ec2); in TestJ438()
[all …]
Ddtifmtts.cpp341 … UDate date2 = 1299115800000.0; // 2011-Mar-02 1730 in US/Pacific, 2011-Mar-03 1030 in Asia/Tokyo in testAPI() local
343 DateInterval * dtitv12 = new DateInterval(date1, date2); in testAPI()
Ddtfmttst.cpp222 SimpleDateFormat date2(pattern, locale, errorCode); in TestPatterns() local
223 date2.adoptCalendar(Calendar::createInstance(locale, errorCode)); in TestPatterns()
234 date2.toLocalizedPattern(actualLocalPattern2, errorCode); in TestPatterns()
758 UDate date2 = formatter->parse(now, pos); in TestRunTogetherPattern985() local
759 if (date2 == 0) then = UnicodeString("Parse stopped at ") + pos.getIndex(); in TestRunTogetherPattern985()
760 else ((DateFormat*)formatter)->format(date2, then); in TestRunTogetherPattern985()
762 if (!(date2 == date1)) errln((UnicodeString)"FAIL"); in TestRunTogetherPattern985()
Dcaltest.cpp3393 UDate date2 = is_cal->getTime(status); in TestIslamicUmAlQura() local
3395 if(date2 != date) { in TestIslamicUmAlQura()
3396 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/javaparser/javaparser-core-testing-bdd/src/test/resources/com/github/javaparser/
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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateIntervalFormatTest.java1474 … long date2 = 1299115800000L; // 2011-Mar-02 1730 in US/Pacific, 2011-Mar-03 1030 in Asia/Tokyo in TestGetSetTimeZone() local
1475 DateInterval dtitv = new DateInterval(date1, date2); in TestGetSetTimeZone()
1601 long date2 = 1299115800000L; in TestDateIntervalFormatCoverage() local
1602 DateInterval dtitv = new DateInterval(date1, date2); in TestDateIntervalFormatCoverage()
DDateFormatTest.java169 DateFormat date2 = DateFormat.getPatternInstance(Calendar.getInstance(locale), in TestPatterns() local
174 String actualLocalPattern2 = ((SimpleDateFormat)date2).toLocalizedPattern(); in TestPatterns()
1704 Date date2 = formatter.parse(now, pos); in TestRunTogetherPattern985() local
1705 if (date2 == null) in TestRunTogetherPattern985()
1708 then = ((DateFormat) formatter).format(date2); in TestRunTogetherPattern985()
1710 if (date2 == null || !date2.equals(date1)) in TestRunTogetherPattern985()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateIntervalFormatTest.java1477 … long date2 = 1299115800000L; // 2011-Mar-02 1730 in US/Pacific, 2011-Mar-03 1030 in Asia/Tokyo in TestGetSetTimeZone() local
1478 DateInterval dtitv = new DateInterval(date1, date2); in TestGetSetTimeZone()
1604 long date2 = 1299115800000L; in TestDateIntervalFormatCoverage() local
1605 DateInterval dtitv = new DateInterval(date1, date2); in TestDateIntervalFormatCoverage()
DDateFormatTest.java172 DateFormat date2 = DateFormat.getPatternInstance(Calendar.getInstance(locale), in TestPatterns() local
177 String actualLocalPattern2 = ((SimpleDateFormat)date2).toLocalizedPattern(); in TestPatterns()
1707 Date date2 = formatter.parse(now, pos); in TestRunTogetherPattern985() local
1708 if (date2 == null) in TestRunTogetherPattern985()
1711 then = ((DateFormat) formatter).format(date2); in TestRunTogetherPattern985()
1713 if (date2 == null || !date2.equals(date1)) in TestRunTogetherPattern985()
/external/python/cpython3/Doc/library/
Ddatetime.rst581 | ``date2 = date1 + timedelta`` | *date2* is ``timedelta.days`` days removed |
584 | ``date2 = date1 - timedelta`` | Computes *date2* such that ``date2 + |
587 | ``timedelta = date1 - date2`` | \(3) |
589 | ``date1 < date2`` | *date1* is considered less than *date2* when |
590 | | *date1* precedes *date2* in time. (4) |
596 *date2* is moved forward in time if ``timedelta.days > 0``, or backward if
597 ``timedelta.days < 0``. Afterward ``date2 - date1 == timedelta.days``.
599 :exc:`OverflowError` is raised if ``date2.year`` would be smaller than
607 timedelta.microseconds are 0, and date2 + timedelta == date1 after.
610 In other words, ``date1 < date2`` if and only if ``date1.toordinal() <
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/
DDateDeserializationTest.java366 Date date2 = r.with(TimeZone.getTimeZone("GMT+5")) in testDateUtilISO8601NoTimezoneNonDefault() local
368 assertEquals(date1, date2); in testDateUtilISO8601NoTimezoneNonDefault()
/external/llvm-project/lldb/test/API/functionalities/data-formatter/data-formatter-objc/
Dmain.m652 NSDate *date2 =
672 CFAbsoluteTime date2_abs = CFDateGetAbsoluteTime(date2);
/external/libphonenumber/demo/war/WEB-INF/lib/
Dcommons-lang-2.6.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/junit-params/lib/
Dassertj-core-1.7.1.jarMETA-INF/MANIFEST.MF META-INF/maven/ META-INF/maven/ ...
/external/guice/extensions/struts2/lib/
Dxwork-core-2.2.1.jarMETA-INF/ META-INF/MANIFEST.MF xwork-validator-definition-1.0. ...