Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17ebaa9 commit ce6aa74Copy full SHA for ce6aa74
2 files changed
Include/pytime.h
@@ -44,11 +44,6 @@ PyAPI_FUNC(PyObject *) _PyLong_FromTime_t(
44
PyAPI_FUNC(time_t) _PyLong_AsTime_t(
45
PyObject *obj);
46
47
-/* Round to nearest with ties going to nearest even integer
48
- (_PyTime_ROUND_HALF_EVEN) */
49
-PyAPI_FUNC(double) _PyTime_RoundHalfEven(
50
- double x);
51
-
52
/* Convert a number of seconds, int or float, to time_t. */
53
PyAPI_FUNC(int) _PyTime_ObjectToTime_t(
54
PyObject *obj,
Python/pytime.c
@@ -60,7 +60,9 @@ _PyLong_FromTime_t(time_t t)
60
#endif
61
}
62
63
-double
+/* Round to nearest with ties going to nearest even integer
64
+ (_PyTime_ROUND_HALF_EVEN) */
65
+static double
66
_PyTime_RoundHalfEven(double x)
67
{
68
double rounded = round(x);
0 commit comments