Home
last modified time | relevance | path

Searched refs:us_per_day (Results 1 – 4 of 4) 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.c1722 static PyObject *us_per_day = NULL; /* 1e6 * 3600 * 24 as Python int */ variable
2463 y = accum("days", x, day, us_per_day, &leftover_us); in delta_new()
6471 us_per_day = PyLong_FromDouble(86400000000.0); in PyInit__datetime()
6473 if (us_per_hour == NULL || us_per_day == NULL || us_per_week == NULL) in PyInit__datetime()
/external/python/cpython3/Lib/test/
Ddatetimetester.py767 us_per_day = us_per_hour * 24
768 eq(td(days=.4/us_per_day), td(0))
770 eq(td(days=.4/us_per_day, hours=.2/us_per_hour), td(microseconds=1))
772 eq(td(days=-.4/us_per_day), td(0))
774 eq(td(days=-.4/us_per_day, hours=-.2/us_per_hour), td(microseconds=-1))