grouping digits with underscores

More readable. Since Python 3.6: https://docs.python.org/3/library/functions.html#int

Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
This commit is contained in:
Mozi
2024-12-25 15:02:25 +00:00
committed by GitHub
co-authored by pukkandan
parent bcda6e49b0
commit 5b6ad82dae
+1 -1
View File
@@ -1382,7 +1382,7 @@ def datetime_round(dt_, precision='day'):
if precision == 'microsecond':
return dt_
time_scale = 1000000
time_scale = 1_000_000
unit_seconds = {
'day': 86400,
'hour': 3600,