How to calculate milliseconds,from the code below.
a = datetime.datetime.now() b = datetime.datetime.now() c = b - a >>> c >>> c.days 0 >>> c.seconds 4 >>> c.microseconds
milliseconds = (c.days * 24 * 60 * 60 + c.seconds) * 1000 + c.microseconds / 1000.0
2.1m questions
2.1m answers
60 comments
57.0k users