A question about time
Jan Danielsson
jan.danielsson at gmail.com
Thu Jun 9 18:03:35 EDT 2005
Grant Edwards wrote:
>>In C, I would do this:
>>
>>server.invalidUntil = time(NULL) + 5*60; // five minute delay
>
> In Python, I would do this:
>
> server.invalidUntil = time.time() + 5*60 # five minute delay
Ah. Well. Um. I feel like an idiot. I found datetime by accident, and
thought "it involves time, so this must be what I'm looking for!".
Anyway; thanks, that was exactly what I was looking for.
More information about the Python-list
mailing list