summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-30 01:52:49 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-30 01:52:49 (GMT)
commitbcdd777d3c01a6db3b4357922663624ef617e65a (patch)
tree89c64b79fd8d7d515bcece608063019cfad79bfd /Include
parentc4bb599be091ae92cfbe47e82a6d18f39c11443e (diff)
downloadcpython-bcdd777d3c01a6db3b4357922663624ef617e65a.zip
cpython-bcdd777d3c01a6db3b4357922663624ef617e65a.tar.gz
cpython-bcdd777d3c01a6db3b4357922663624ef617e65a.tar.bz2
Issue #22117: Add _PyTime_ROUND_CEILING rounding method for timestamps
Add also more tests for ROUNd_FLOOR.
Diffstat (limited to 'Include')
-rw-r--r--Include/pytime.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Include/pytime.h b/Include/pytime.h
index f14e1fc..ff3e203 100644
--- a/Include/pytime.h
+++ b/Include/pytime.h
@@ -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. */