Home
last modified time | relevance | path

Searched refs:timet (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Modules/
Ddatetimemodule.c3743 datetime_from_timet_and_us(PyObject *cls, TM_FUNC f, time_t timet, int us, in datetime_from_timet_and_us() argument
3749 tm = f(&timet); in datetime_from_timet_and_us()
3787 time_t timet; in datetime_from_timestamp() local
3791 timet = _PyTime_DoubleToTimet(timestamp); in datetime_from_timestamp()
3792 if (timet == (time_t)-1 && PyErr_Occurred()) in datetime_from_timestamp()
3794 fraction = timestamp - (double)timet; in datetime_from_timestamp()
3799 timet -= 1; in datetime_from_timestamp()
3806 timet += 1; in datetime_from_timestamp()
3809 return datetime_from_timet_and_us(cls, f, timet, us, tzinfo); in datetime_from_timestamp()
/external/python/cpython3/Modules/
D_datetimemodule.c4735 datetime_from_timet_and_us(PyObject *cls, TM_FUNC f, time_t timet, int us, in datetime_from_timet_and_us() argument
4741 if (f(timet, &tm) != 0) in datetime_from_timet_and_us()
4771 && (timet - max_fold_seconds > 0) in datetime_from_timet_and_us()
4779 probe_seconds = local(epoch + timet - max_fold_seconds); in datetime_from_timet_and_us()
4784 probe_seconds = local(epoch + timet + transition); in datetime_from_timet_and_us()
4806 time_t timet; in datetime_from_timestamp() local
4810 &timet, &us, _PyTime_ROUND_HALF_EVEN) == -1) in datetime_from_timestamp()
4813 return datetime_from_timet_and_us(cls, f, timet, (int)us, tzinfo); in datetime_from_timestamp()
Dposixmodule.c4485 time_t timet[2]; \
4490 timet[0] = ut->atime_s; \
4491 timet[1] = ut->mtime_s; \
4492 time = timet; \