pytz and timezone specialists
manatlan
manatlan at gmail.com
Fri Dec 5 13:20:11 EST 2008
Here is a really simple code :
-------------------------------------------------------
from datetime import datetime
from pytz import timezone
tz=timezone("Europe/Paris")
d=datetime(2008,12,12,19,00,00,tzinfo=tz)
print d.isoformat()
d=datetime.now(tz)
print d.isoformat()
-------------------------------------------------------
when I run it, it displays (according current time ;-):
2008-12-12T19:00:00+00:09
2008-12-05T19:15:38.135467+01:00
The Europe/Paris timezone is GMT+1 ... the second date seems to be
right (+01:00 at the end)
But why the first date ends with "+00:09" ?!? it should be +01:00 ...
no ?!
Where's the bug ?!? (sure : it's me ;-) ... but i don't understand
this simple thing)
More information about the Python-list
mailing list