From 606f586c6dc61aced5064bd4db895cf29e9208e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9F=93?= <56108982+XR-stb@users.noreply.github.com> Date: Thu, 25 May 2023 16:38:49 +0800 Subject: [PATCH] Update datetime.py --- tests/datetime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/datetime.py b/tests/datetime.py index 2a8d9399..110fc205 100644 --- a/tests/datetime.py +++ b/tests/datetime.py @@ -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