[Tutor] Time help

MBussell at aol.com MBussell at aol.com
Mon May 31 11:42:10 EDT 2004

I am playing with the Time Module, and was attempt to write a script which 
would tell me when a specific time was reached.

I am using the integer number of seconds since the epoch.  This is what I 

def test():
    now = 1086017720.0
    current = time.time()
    print current
    while now<>current:
        current = time.time()
        print current
    print "now is acheived!"

The problem is the count continues past the specific time.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20040531/e533745a/attachment.html

More information about the Tutor mailing list