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.c4973 datetime_from_timet_and_us(PyObject *cls, TM_FUNC f, time_t timet, int us, in datetime_from_timet_and_us() argument
4979 if (f(timet, &tm) != 0) in datetime_from_timet_and_us()
5009 && (timet - max_fold_seconds > 0) in datetime_from_timet_and_us()
5017 probe_seconds = local(epoch + timet - max_fold_seconds); in datetime_from_timet_and_us()
5022 probe_seconds = local(epoch + timet + transition); in datetime_from_timet_and_us()
5044 time_t timet; in datetime_from_timestamp() local
5048 &timet, &us, _PyTime_ROUND_HALF_EVEN) == -1) in datetime_from_timestamp()
5051 return datetime_from_timet_and_us(cls, f, timet, (int)us, tzinfo); in datetime_from_timestamp()
Dposixmodule.c5021 time_t timet[2]; \
5026 timet[0] = ut->atime_s; \
5027 timet[1] = ut->mtime_s; \
5028 time = timet; \