]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41710: Add pytime_add() and pytime_mul() (GH-28642)
authorVictor Stinner <vstinner@python.org>
Thu, 30 Sep 2021 01:07:11 +0000 (03:07 +0200)
committerGitHub <noreply@github.com>
Thu, 30 Sep 2021 01:07:11 +0000 (03:07 +0200)
commitd62d925823b005c33b432e527562b573a3a89635
tree01b09ab366d0c4ccd99d4f5e38b8dd1ce479f958
parent09796f2f142fdb1214f34a3ca917959ecb32a88b
bpo-41710: Add pytime_add() and pytime_mul() (GH-28642)

Add pytime_add() and pytime_mul() functions to pytime.c to compute
t+t2 and t*k with clamping to [_PyTime_MIN; _PyTime_MAX].

Fix pytime.h: _PyTime_FromTimeval() is not implemented on Windows.
Include/cpython/pytime.h
Python/pytime.c