[Datetime-SIG] Calendar vs timespan calculations...

Ethan Furman ethan at stoneleaf.us
Fri Jul 31 02:16:55 CEST 2015


On 07/30/2015 04:50 PM, Alexander Belopolsky wrote:

> I think we can change the behavior  datetime.__add__ and
> datetime.__sub__ if we do it based on the type of the object attached
> as tzinfo.

Yup, it's really the datetime.__xxx__ methods that need to do something different, so we can base that off a flag to the datetime, or the type of the tzinfo.

I suppose the key question is which will make it more obvious that "strict" rules are in affect?

--
~Ethan~


More information about the Datetime-SIG mailing list