Lines Matching refs:date2
428 | ``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() <
460 date2.toordinal()``. In order to stop comparison from falling back to the