datetime question

Joel Goldstick joel.goldstick at gmail.com
Tue Nov 12 20:14:44 CET 2013


On Tue, Nov 12, 2013 at 2:09 PM, MRAB <python at mrabarnett.plus.com> wrote:
> On 12/11/2013 16:12, Tim Chase wrote:
>>
>> On 2013-11-12 17:57, Ferrous Cranus wrote:
>>>
>>> > Best practices say to move the value from local time to UTC as
>>> > soon as possible, then store/use the UTC time internally for all
>>> > operations.  Only when it's about to be presented to the user
>>> > should you convert it back to local time if you need to.
>>>
>>> or perhaps by confiruing the timezone of the server to use Greece's
>>> TimeZone by issuing a linux command?
>>
>>
>> Regardless of the server's configured TZ, best practice still says to
>> normalize everything to UTC (ESPECIALLY if Greece uses the
>> abomination of DST that we suffer here in the US) as soon as
>> possible and keep it that way for as long as possible.
>>
> FTR, the countries in the EU all change at the same (UTC) time.
> --
> https://mail.python.org/mailman/listinfo/python-list

In the US, the state of Indiana is really weird.  Three separate time
zone areas, that don't all flip in the same way.  See this for TZ
hell:  http://en.wikipedia.org/wiki/Indiana_time_zones

-- 
Joel Goldstick
http://joelgoldstick.com



More information about the Python-list mailing list