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.c1721 static PyObject *us_per_hour = NULL; /* 1e6 * 3600 as Python int */ variable
2459 y = accum("hours", x, hour, us_per_hour, &leftover_us); in delta_new()
6470 us_per_hour = PyLong_FromDouble(3600000000.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.py766 us_per_hour = 3600e6
767 us_per_day = us_per_hour * 24
769 eq(td(hours=.2/us_per_hour), td(0))
770 eq(td(days=.4/us_per_day, hours=.2/us_per_hour), td(microseconds=1))
773 eq(td(hours=-.2/us_per_hour), td(0))
774 eq(td(days=-.4/us_per_day, hours=-.2/us_per_hour), td(microseconds=-1))