Message300040
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. |
|
Date |
User |
Action |
Args |
2017-08-10 04:02:18 | r.david.murray | set | recipients:
+ r.david.murray, JoshuaRLi |
2017-08-10 04:02:18 | r.david.murray | set | messageid: <1502337738.77.0.778515985379.issue31167@psf.upfronthosting.co.za> |
2017-08-10 04:02:18 | r.david.murray | link | issue31167 messages |
2017-08-10 04:02:17 | r.david.murray | create | |
|