On Tue, Aug 25, 2015 at 1:56 PM, Stuart Bishop <[email protected]>
wrote:

> What would be even nicer is if users didn't have to use localize at all:
>
> >> datetime.now(tz=pytz.timezone('US/Eastern'))
>

This is certainly one of the main goals of PEP 495.  Note that
datetime.now() will never produce an invalid datetime and will always set
the fold attribute correctly in the (two-)fold case if
pytz.timezone('US/Eastern') follows PEP guidelines.  Therefore there is no
need for the third fold value in this case.
_______________________________________________
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/

Reply via email to