Time conversion between UTC and local time

Miki miki.tebeka at gmail.com
Fri Feb 8 21:54:10 EST 2008


Hello,

> I have the following problem:
> There are strings describing a UTC time, e.g. " 2008-01-15 22:32:30"
> and a string reflecting the time
> zone e.g. "-05:00".
>
> What is an elegant way of getting the local time (considering DST -
> daylight saving time) with that data?
> The date is not important, just the local time.
> The format is not important, the easiest would probably be a tuple
> (h,m,s) .

http://labix.org/python-dateutil

HTH,
--
Miki <miki.tebeka at gmail.com>
http://pythonwise.blogspot.com



More information about the Python-list mailing list