Home
last modified time | relevance | path

Searched refs:us_per_day (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython2/Modules/
Ddatetimemodule.c1482 static PyObject *us_per_day = NULL; /* 1e6 * 3600 * 24 as Python long */ variable
1993 y = accum("days", x, day, us_per_day, &leftover_us); in delta_new()
4917 us_per_day = PyLong_FromDouble(86400000000.0); in initdatetime()
4919 if (us_per_hour == NULL || us_per_day == NULL || us_per_week == NULL) in initdatetime()
/external/python/cpython2/Lib/test/
Dtest_datetime.py443 us_per_day = us_per_hour * 24
444 eq(td(days=.4/us_per_day), td(0))
446 eq(td(days=.4/us_per_day, hours=.2/us_per_hour), td(microseconds=1))
448 eq(td(days=-.4/us_per_day), td(0))
450 eq(td(days=-.4/us_per_day, hours=-.2/us_per_hour), td(microseconds=-1))
/external/python/cpython3/Modules/
D_datetimemodule.c1731 static PyObject *us_per_day = NULL; /* 1e6 * 3600 * 24 as Python int */ variable
2472 y = accum("days", x, day, us_per_day, &leftover_us); in delta_new()
6685 us_per_day = PyLong_FromDouble(86400000000.0); in _datetime_exec()
6687 if (us_per_hour == NULL || us_per_day == NULL || us_per_week == NULL) { in _datetime_exec()
/external/python/cpython3/Lib/test/
Ddatetimetester.py833 us_per_day = us_per_hour * 24
834 eq(td(days=.4/us_per_day), td(0))
836 eq(td(days=.4/us_per_day, hours=.2/us_per_hour), td(microseconds=1))
838 eq(td(days=-.4/us_per_day), td(0))
840 eq(td(days=-.4/us_per_day, hours=-.2/us_per_hour), td(microseconds=-1))
/external/python/cpython3/Tools/c-analyzer/cpython/
Dignored.tsv2725 Modules/_datetimemodule.c - us_per_day -