mirror of
https://github.com/python/cpython
synced 2026-09-29 10:35:30 +03:00
Issue #22117: Add _PyTime_ROUND_CEILING rounding method for timestamps
Add also more tests for ROUNd_FLOOR.
This commit is contained in:
parent
c4bb599be0
commit
bcdd777d3c
4 changed files with 68 additions and 6 deletions
|
|
@ -32,7 +32,10 @@ typedef enum {
|
|||
_PyTime_ROUND_UP,
|
||||
/* Round towards minus infinity (-inf).
|
||||
For example, used to read a clock. */
|
||||
_PyTime_ROUND_FLOOR
|
||||
_PyTime_ROUND_FLOOR,
|
||||
/* Round towards infinity (+inf).
|
||||
For example, used for timeout to wait "at least" N seconds. */
|
||||
_PyTime_ROUND_CEILING
|
||||
} _PyTime_round_t;
|
||||
|
||||
/* Convert a time_t to a PyLong. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue