Skip to content

Commit 4aaf9f7

Browse files
committed
fix: correct subtract(minutes=24) example in documentation
The example incorrectly showed '2012-01-28 00:00:00' but subtracting 24 minutes from 01:01:00 should give 00:37:00. Closes #925
1 parent ae4c405 commit 4aaf9f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/addition_subtraction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Each method returns a new `DateTime` instance.
6464
>>> dt = dt.subtract(minutes=1)
6565
'2012-01-28 01:01:00'
6666
>>> dt = dt.subtract(minutes=24)
67-
'2012-01-28 00:00:00'
67+
'2012-01-28 00:37:00'
6868

6969
>>> dt = dt.add(seconds=61)
7070
'2012-01-28 00:01:01'

0 commit comments

Comments
 (0)