[Python-Dev] Status on PEP-431 Timezones
alexander.belopolsky at gmail.com
Sat Jul 25 16:15:29 CEST 2015
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
in UTC. You can store them in naive datetime instances, but the
approach is to use datetime instances with tzinfo=timezone.utc.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev