Converts current time to milliseconds

Asked 2 years ago, Updated 2 years ago, 90 views

You must convert the current time to python in milliseconds. What method should I use?

date datetime python time

2022-09-22 22:11

1 Answers

time.time returns the epoch time to float.

= 1000 mm choy and multiplied by 10 here a second later, (Yours very truly, rounded up / in the blood), you can do as you wish.

import time

current_milli_time = lambda: int(round(time.time() * 1000))


2022-09-22 22:11

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.