We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 295d82d commit 1aaa483Copy full SHA for 1aaa483
Lib/uuid.py
@@ -774,7 +774,7 @@ def uuid7():
774
global _last_timestamp_v7
775
import time
776
nanoseconds = time.time_ns()
777
- timestamp_ms = nanoseconds // 10 ** 6 # may be improved
+ timestamp_ms = nanoseconds // 1_000_000
778
if _last_timestamp_v7 is not None and timestamp_ms <= _last_timestamp_v7:
779
timestamp_ms = _last_timestamp_v7 + 1
780
_last_timestamp_v7 = timestamp_ms
0 commit comments