Skip to content

Commit 1692b57

Browse files
committed
Fix incorrect subtract result in docs
The result of dt.subtract(minutes=24) from 01:01:00 should be 00:37:00, not 00:00:00. Fixes #925
1 parent 02f87ce commit 1692b57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)