gmtime

pograph purui.wang at gmail.com
Sun Jan 31 20:19:41 EST 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?
>
> Cheers,
> Garyc

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



More information about the Python-list mailing list