Lines Matching refs:sec
282 pytime_double_to_denominator(double d, time_t *sec, long *numerator,
322 *sec = (time_t)intpart;
330 pytime_object_to_denominator(PyObject *obj, time_t *sec, long *numerator,
342 return pytime_double_to_denominator(d, sec, numerator,
346 *sec = _PyLong_AsTime_t(obj);
348 if (*sec == (time_t)-1 && PyErr_Occurred()) {
357 _PyTime_ObjectToTime_t(PyObject *obj, time_t *sec, _PyTime_round_t round)
378 *sec = (time_t)intpart;
382 *sec = _PyLong_AsTime_t(obj);
383 if (*sec == (time_t)-1 && PyErr_Occurred()) {
392 _PyTime_ObjectToTimespec(PyObject *obj, time_t *sec, long *nsec,
395 return pytime_object_to_denominator(obj, sec, nsec, SEC_TO_NS, round);
400 _PyTime_ObjectToTimeval(PyObject *obj, time_t *sec, long *usec,
403 return pytime_object_to_denominator(obj, sec, usec, SEC_TO_US, round);
558 long long sec = PyLong_AsLongLong(obj);
559 if (sec == -1 && PyErr_Occurred()) {
568 _PyTime_t ns = (_PyTime_t)sec;