On Tue, Aug 18, 2015 at 1:35 PM, Carl Meyer <[email protected]> wrote:
> One problem with both `fold` and `repeat` is that this flag (per the > PEP) also influences resolution of "missing" times, in which case there > is no fold (there's a gap) and no time is repeated. > I thought about this and my answer is that a "gap" is a negative "fold", so in the fold you have t.replace(fold=True) - t.replace(fold=False) > 0 and in the gap - the opposite t.replace(fold=True) - t.replace(fold=False) < 0. While admittedly, this is an a posteriori justification, it makes perfect sense to me.
_______________________________________________ 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/
