Searched refs:us_per_hour (Results 1 - 2 of 2) sorted by relevance
/third_party/python/Modules/ |
H A D | _datetimemodule.c | 1827 static PyObject *us_per_hour = NULL; /* 1e6 * 3600 as Python int */ variable 2565 y = accum("hours", x, hour, us_per_hour, &leftover_us); in delta_new() 6892 us_per_hour = PyLong_FromDouble(3600000000.0); in _datetime_exec() 6895 if (us_per_hour == NULL || us_per_day == NULL || us_per_week == NULL) { in _datetime_exec()
|
/third_party/python/Lib/test/ |
H A D | datetimetester.py | 843 us_per_hour = 3600e6 844 us_per_day = us_per_hour * 24 846 eq(td(hours=.2/us_per_hour), td(0)) 847 eq(td(days=.4/us_per_day, hours=.2/us_per_hour), td(microseconds=1)) 850 eq(td(hours=-.2/us_per_hour), td(0)) 851 eq(td(days=-.4/us_per_day, hours=-.2/us_per_hour), td(microseconds=-1))
|
Completed in 17 milliseconds