Lines Matching refs:date1
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.
456 timedelta.microseconds are 0, and date2 + timedelta == date1 after.
459 In other words, ``date1 < date2`` if and only if ``date1.toordinal() <