Skip to content

Commit 6315f37

Browse files
Commit
1 parent bd928a3 commit 6315f37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/datetime.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ Instance methods:
15351535

15361536
or by calculating the timestamp directly::
15371537

1538-
timestamp = (dt - datetime(1970, 1, 1)) / timedelta(seconds=1)
1538+
timestamp = (dt - datetime(1970, 1, 1)).total_seconds()
15391539

15401540
.. method:: datetime.weekday()
15411541

0 commit comments

Comments
 (0)