hi all!

DateTime('2005/04/03 02:01 GMT').toZone('GMT-4')

prints:
2005/04/02 22:01:00 GMT-4
...which is what i expected
---------------------------------------------------------------------
DateTime('2005/04/03 02:01 GMT').toZone('GMT-4')\
.strftime('%Y/%m/%d %H:%M %Z')

prints:
2005/04/03 04:01

hmm, where's the timezone information gone? to make it short, how
can i get a text representation of a DateTime object in a given
timezone?

thanks in advance!

juergen herrmann
_______________________________________________________________________

>> XLhost.de - eXperts in Linux hosting <<

Jürgen Herrmann
Bruderwöhrdstraße 15b, DE-93051 Regensburg

Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
Fax:  +49 (0)721 151 463027
WEB:  http://www.XLhost.de
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to