-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed as not planned
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
Description
Bug report
Bug description:
Problem with datetime lib
# Add a code block here, if required
import time
from datetime import datetime
x1 = (datetime.fromisoformat('2025-01-08T00:00:01') - datetime.utcnow()).seconds
time.sleep(5)
x2 = (datetime.fromisoformat('2025-01-08T00:00:01') - datetime.utcnow()).seconds
print(f"x1 should be less than x2, but x1={x1}, x2={x2}; x1<x2={x1<x2}")
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
Projects
Status
Done