From 4aaf9f7982f7e2f474000b43841a7e31cb25342f Mon Sep 17 00:00:00 2001 From: Jah-yee Date: Thu, 19 Mar 2026 13:08:49 +0800 Subject: [PATCH] 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 --- docs/docs/addition_subtraction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/addition_subtraction.md b/docs/docs/addition_subtraction.md index 686f67f0..32cb875d 100644 --- a/docs/docs/addition_subtraction.md +++ b/docs/docs/addition_subtraction.md @@ -64,7 +64,7 @@ Each method returns a new `DateTime` instance. >>> dt = dt.subtract(minutes=1) '2012-01-28 01:01:00' >>> dt = dt.subtract(minutes=24) -'2012-01-28 00:00:00' +'2012-01-28 00:37:00' >>> dt = dt.add(seconds=61) '2012-01-28 00:01:01'