Is socket.gettime() miliseconds or seconds? (SOLVED)

I printed socket.gettime()
And I got this number
1535993982.1232

If miliseconds possible
if seconds then its weird because just turned on the debugger

It returns the time in seconds. It uses the Unix timestamp (based on seconds since standard epoch of 1/1/1970). It will return the date and time in seconds.

1535993982.1232 converted to normal timestamp is 09/03/2018 @ 4:59pm (UTC)

Some more information provided here.

5 Likes

Oh alright thanks

1 Like