Searched refs:us_per_second (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython2/Modules/ |
D | datetimemodule.c | 1479 static PyObject *us_per_second = NULL; /* 1000000 */ variable 1529 x1 = PyNumber_Multiply(x3, us_per_second); /* us */ in delta_to_microseconds() 1564 tuple = PyNumber_Divmod(pyus, us_per_second); in microseconds_to_delta_ex() 1981 y = accum("seconds", x, second, us_per_second, &leftover_us); in delta_new() 4906 us_per_second = PyInt_FromLong(1000000); in initdatetime() 4909 if (us_per_us == NULL || us_per_ms == NULL || us_per_second == NULL || in initdatetime()
|
/external/python/cpython3/Modules/ |
D | _datetimemodule.c | 1719 static PyObject *us_per_second = NULL; /* 1000000 */ variable 1769 x1 = PyNumber_Multiply(x3, us_per_second); /* us */ in delta_to_microseconds() 1825 tuple = checked_divmod(pyus, us_per_second); in microseconds_to_delta_ex() 2451 y = accum("seconds", x, second, us_per_second, &leftover_us); in delta_new() 2623 total_seconds = PyNumber_TrueDivide(total_microseconds, us_per_second); in delta_total_seconds() 6460 us_per_second = PyLong_FromLong(1000000); in PyInit__datetime() 6463 if (us_per_ms == NULL || us_per_second == NULL || in PyInit__datetime()
|