1,760
edits
Changes
→Test for operator overloading '+' and '-'
=== Test for operator overloading '+' and '-' ===
: <source lang="python">
>>> d1
2019-11-07
>>> d2
2019-11-14
>>> d1 - d2
-7
>>> d2 - d1
7
>>> d2 = Date(2019,2,28)
>>> d2
2019-02-28