This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author JoshuaRLi
Recipients JoshuaRLi
Date 2017-08-10.02:04:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502330680.91.0.483669668972.issue31167@psf.upfronthosting.co.za>
In-reply-to
Content
See my SO answer and the corresponding question for detail: https://stackoverflow.com/a/45602760/5348393

Essentially, given two datetime.datetime instances t1 and t2, the following two syntactically different lines of code should be logically equivalent, but in fact differ by plus or minus one hour on Daylight Savings Time dates because `datetime.datetime.__sub__` does not appear to take DST into account.

`t1.timestamp()-t2.timestamp()`
`(t1-t2).total_seconds()`

I am not sure if this is by intentional design, or a behavioral bug.
History
Date User Action Args
2017-08-10 02:04:40JoshuaRLisetrecipients: + JoshuaRLi
2017-08-10 02:04:40JoshuaRLisetmessageid: <1502330680.91.0.483669668972.issue31167@psf.upfronthosting.co.za>
2017-08-10 02:04:40JoshuaRLilinkissue31167 messages
2017-08-10 02:04:38JoshuaRLicreate