From 6315f37747be867e08cc646d849b3a730a70dd77 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Sun, 29 Jun 2025 18:13:34 +0100 Subject: [PATCH] Commit --- Doc/library/datetime.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index 16ed3215bc2c1a..7cdead303f8212 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -1535,7 +1535,7 @@ Instance methods: or by calculating the timestamp directly:: - timestamp = (dt - datetime(1970, 1, 1)) / timedelta(seconds=1) + timestamp = (dt - datetime(1970, 1, 1)).total_seconds() .. method:: datetime.weekday()