On Tue, Aug 18, 2015 at 1:36 PM, Guido van Rossum <[email protected]> wrote:
> How about this diagram?
>
> fold=True | fold=False
> +---+----------->
> \ .
> \ .
> fold=False \.
> ------------->+
>
> That's how I think of what happens when you set the clock an hour back.
This is a traditional way to visualize the end of DST (with the summer time
at the bottom and the winter time at the top), but in the context of PEP
495, a slightly different picture is more appropriate. After addition of
the disambiguation flag, the set of local times doubles, so instead of one
time line, you have two:
fold=True o o o o +---+ o o o o o ... o o o o o o o o o o o
. . "Gap"
. . <- "Fold" |
.. V
fold=False ----------->+---------- ... ------> o o o +------
Valid times are represented as dashes ("-") on the diagram above and
invalid as circles ("o"). Note that in this picture, the current
"fold-unaware" timeline is just the bottom line (fold=False), while your
picture suggests that fold=False set is somehow discontinuous at the
fall-back point, but it is not in the fold-unaware world, and preserving
this was one of my design goals for PEP 495.
_______________________________________________
Datetime-SIG mailing list
[email protected]
https://mail.python.org/mailman/listinfo/datetime-sig
The PSF Code of Conduct applies to this mailing list:
https://www.python.org/psf/codeofconduct/