Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gmtime

4 views
Skip to first unread message

gazza

unread,
Jan 31, 2010, 4:27:46 PM1/31/10
to
Hi,

I am trying to discover how to obtain the correct time of say CST/
America and EST/America in python?

Any help on this would be appreciated.


Thanks,
Garyc

gazza

unread,
Jan 31, 2010, 7:01:43 PM1/31/10
to

I found some information. Someone suggested I use the pytz library?

Cheers,
Garyc

pograph

unread,
Jan 31, 2010, 8:19:41 PM1/31/10
to

tz = pytz.timezone('US/Pacific')
t = datetime.datetime.now(tz)

Gary Herron

unread,
Feb 1, 2010, 4:23:31 AM2/1/10
to pytho...@python.org
The datetime module should give you all you need.

Gary Herron


0 new messages