[Python-Dev] Status on PEP-431 Timezones

Ryan Hiebert ryan at ryanhiebert.com
Sat Jul 25 18:00:34 CEST 2015


> On Jul 25, 2015, at 09:15, Alexander Belopolsky <alexander.belopolsky at gmail.com> wrote:
> 
> 
>> On Sat, Jul 25, 2015 at 2:40 AM, Lennart Regebro <regebro at gmail.com> wrote:
>> There really is a reason every other date time implementation I know
>> of uses UTC internally, and there really is a reason why everyone
>> always recommends storing date times in UTC with the time zone or
>> offset separately.
> 
> Current datetime design does not prevent your application from storing date-times
> in UTC.  You can store them in naive datetime instances, but the recommended 
> approach is to use datetime instances with tzinfo=timezone.utc.

Yes, and now he wants to do the same thing for the internals of the datetime module, for the same reasons that it's the best thing most everywhere else. It's just going to take some significant effort to make that happen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150725/703b2a2d/attachment.html>


More information about the Python-Dev mailing list