purui.wang at gmail.com
Mon Feb 1 02:19:41 CET 2010
On Jan 31, 4:01 pm, gazza <burslem2... at yahoo.com> wrote:
> On Jan 31, 3:27 pm, gazza <burslem2... at yahoo.com> wrote:
> > 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
> I found some information. Someone suggested I use the pytz library?
tz = pytz.timezone('US/Pacific')
t = datetime.datetime.now(tz)
More information about the Python-list