Am Samstag, 26. März 2005 19:47 schrieb Sean McIlroy:
> <snip>

Why not try the following:

>>> import datetime
>>> x = datetime.datetime.now()
>>> x
datetime.datetime(2005, 3, 26, 21, 48, 13, 495765)
>>> y = datetime.datetime(2005,3,26,21,50) # Wake me up today at 21:50
>>> y
datetime.datetime(2005, 3, 26, 21, 50, 13)
>>> time.sleep((y-x).days*60*60*24+(y-x).seconds+(y-x).microseconds*0.000001)
>>> print "I am past the timeout!"

-- 
--- Heiko.

Attachment: pgpqu5qmTn3g4.pgp
Description: PGP signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to