Skip to content

Commit dd1b0ed

Browse files
committed
Simplify uuid time scale float literal
PYTHON-99 peer review
1 parent d2f5335 commit dd1b0ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cassandra/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def unix_time_from_uuid1(uuid_arg):
3333
:rtype: timestamp
3434
3535
"""
36-
return (uuid_arg.time - 0x01B21DD213814000) / 10000000.0
36+
return (uuid_arg.time - 0x01B21DD213814000) / 1e7
3737

3838

3939
def datetime_from_uuid1(uuid_arg):

0 commit comments

Comments
 (0)