mirror of
https://github.com/pocketpy/pocketpy
synced 2025-11-10 13:40:16 +00:00
Update datetime.py
This commit is contained in:
parent
d88c69a726
commit
606f586c6d
@ -757,7 +757,7 @@ class datetime(date):
|
||||
A timezone info object may be passed in as well.
|
||||
"""
|
||||
frac, t = math.modf(t)
|
||||
us = round(frac * 1e6)
|
||||
us = round(frac * 1000000)
|
||||
if us >= 1000000:
|
||||
t += 1
|
||||
us -= 1000000
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user