I want to write timestamps to the second second in python. It looks like the standard answer is int(time.time() * 1000)
However, if time.time() returns a float, would there be a problem with precision? There will be some values ββthat will not exactly display as float.
I'm worried about some fractional moments that do not display correctly as a float, and the timestamp in these cases jumps forward or backward.
Is this a serious problem?
If so, what is the workaround?
source share