David Grellscheid added the comment:
OK, having read
https://blog.ganssle.io/articles/2018/02/aware-datetime-arithmetic.html, this
bizarreness is actually intended behaviour. It goes completely against my
intuitive understanding of how this should come out. No additions are involved,
just
David Grellscheid added the comment:
Here's a third example, without fold= involved. The spring transition also does
not work when the timezone in the difference is equal:
01:59:00 to 03:01:00 should be 2 minutes
All these should be 0:02:00 apart
1:02:00 Oslo_1 - Oslo_0
0:02:00 Ber
David Grellscheid added the comment:
To make it clear that this issue is not covered by ...
"Two such instances that differ only by the value of the fold attribute will
not be distinguishable by any means other than an explicit access to the fold
value." (PEP 495)
I have mo
New submission from David Grellscheid :
I'm comparing two aware timestamps during a clock transition that differ only
in their fold= value.
When taking the difference of two aware timestamps with the *same* tzinfo, the
fold parameter is ignored.
A difference between two timestamps