gazza 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
The datetime module should give you all you need.
Gary Herron
--
http://mail.python.org/mailman/listinfo/python-li
On Jan 31, 4:01 pm, gazza wrote:
> On Jan 31, 3:27 pm, gazza 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
On Jan 31, 3:27 pm, gazza 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
--
[EMAIL PROTECTED]:~ $ python
Use now() from datetime class of datetime module instead of time
module.
Python 2.4.1 (#2, Mar 30 2005, 21:51:10)
[GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
py> import datetime
py> t = datetime
Hello,
I want to know if a certain duration is over.
I try it like this with timedelta objects:
d = datetime.timedelta(minutes = 2)
t = time.gmtime()
print (t + d < time.gmtime())
gives:
TypeError: unsupported operand type(s) for +: 'datetime.timedelta' and
'time.struct_time'
How to do that rig