How can I return the current time of the local machine?
This question was answered:
>>import time
>>time.time()
>>1269888125.177495
>>int(time.time())
>>1269888125
How can I return the current time of the local machine?
This question was answered:
>>import time
>>time.time()
>>1269888125.177495
>>int(time.time())
>>1269888125
Do you mean this: time.time()?
From the docs:
Return the time as a floating point number expressed in seconds since the epoch, in UTC
>>> import time
>>> time.time()
1269884900.480978
>>>