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 r.david.murray
Recipients JoshuaRLi, r.david.murray
Date 2017-08-10.04:02:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502337738.77.0.778515985379.issue31167@psf.upfronthosting.co.za>
In-reply-to
Content
It is by design.  Read the footnote associated with the subtraction opertion on datetimes: after subtraction date2 + timedelta = date1, which implies that the subtraction ignores daylight savings transitions, since the addition does ("Note that no time zone adjustments are done even if the input is an aware object").

Perhaps the reason why it is designed this way is menioned in the PEP; I haven't looked.
History
Date User Action Args
2017-08-10 04:02:18r.david.murraysetrecipients: + r.david.murray, JoshuaRLi
2017-08-10 04:02:18r.david.murraysetmessageid: <1502337738.77.0.778515985379.issue31167@psf.upfronthosting.co.za>
2017-08-10 04:02:18r.david.murraylinkissue31167 messages
2017-08-10 04:02:17r.david.murraycreate