nominaldelta

nominal difference of date/datetime
git clone https://git.ce9e.org/nominaldelta.git

commit
553add86af32354eec4808ad7327418adfcc35c6
parent
0d09cafef75357dcb10aa667c5b6c4d6400726f0
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-08-31 01:49
test DST with day

Diffstat

M test.py 4 ++++

1 files changed, 4 insertions, 0 deletions


diff --git a/test.py b/test.py

@@ -90,6 +90,10 @@ class TestNominalDelta(unittest.TestCase):
   90    90             datetime(2019, 10, 27, 2, 59, tzinfo=tz) + NominalDelta(minutes=2),
   91    91             datetime(2019, 10, 27, 2, 1, fold=True, tzinfo=tz),
   92    92         )
   -1    93         self.assertEqual(
   -1    94             datetime(2019, 3, 30, 2, 30, tzinfo=tz) + NominalDelta(days=1),
   -1    95             datetime(2019, 3, 31, 3, 30, tzinfo=tz),
   -1    96         )
   93    97 
   94    98     def test_rsub_date(self):
   95    99         self.assertEqual(