Message300040
| 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: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 |
|