Home
last modified time | relevance | path

Searched refs:us_per_hour (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_datetime.py442 us_per_hour = 3600e6
443 us_per_day = us_per_hour * 24
445 eq(td(hours=.2/us_per_hour), td(0))
446 eq(td(days=.4/us_per_day, hours=.2/us_per_hour), td(microseconds=1))
449 eq(td(hours=-.2/us_per_hour), td(0))
450 eq(td(days=-.4/us_per_day, hours=-.2/us_per_hour), td(microseconds=-1))
/external/python/cpython2/Modules/
Ddatetimemodule.c1481 static PyObject *us_per_hour = NULL; /* 1e6 * 3600 as Python long */ variable
1989 y = accum("hours", x, hour, us_per_hour, &leftover_us); in delta_new()
4916 us_per_hour = PyLong_FromDouble(3600000000.0); in initdatetime()
4919 if (us_per_hour == NULL || us_per_day == NULL || us_per_week == NULL) in initdatetime()
/external/python/cpython3/Modules/
D_datetimemodule.c1739 static PyObject *us_per_hour = NULL; /* 1e6 * 3600 as Python int */ variable
2477 y = accum("hours", x, hour, us_per_hour, &leftover_us); in delta_new()
6709 us_per_hour = PyLong_FromDouble(3600000000.0); in PyInit__datetime()
6712 if (us_per_hour == NULL || us_per_day == NULL || us_per_week == NULL) in PyInit__datetime()
/external/python/cpython3/Lib/test/
Ddatetimetester.py832 us_per_hour = 3600e6
833 us_per_day = us_per_hour * 24
835 eq(td(hours=.2/us_per_hour), td(0))
836 eq(td(days=.4/us_per_day, hours=.2/us_per_hour), td(microseconds=1))
839 eq(td(hours=-.2/us_per_hour), td(0))
840 eq(td(days=-.4/us_per_day, hours=-.2/us_per_hour), td(microseconds=-1))