Home
last modified time | relevance | path

Searched refs:leftover_us (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
Ddatetimemodule.c1949 double leftover_us = 0.0; in delta_new() local
1973 y = accum("microseconds", x, us, us_per_us, &leftover_us); in delta_new()
1977 y = accum("milliseconds", x, ms, us_per_ms, &leftover_us); in delta_new()
1981 y = accum("seconds", x, second, us_per_second, &leftover_us); in delta_new()
1985 y = accum("minutes", x, minute, us_per_minute, &leftover_us); in delta_new()
1989 y = accum("hours", x, hour, us_per_hour, &leftover_us); in delta_new()
1993 y = accum("days", x, day, us_per_day, &leftover_us); in delta_new()
1997 y = accum("weeks", x, week, us_per_week, &leftover_us); in delta_new()
2000 if (leftover_us) { in delta_new()
2002 PyObject *temp = PyLong_FromLong(round_to_long(leftover_us)); in delta_new()
/external/python/cpython3/Modules/
D_datetimemodule.c2419 double leftover_us = 0.0; in delta_new() local
2443 y = accum("microseconds", x, us, _PyLong_One, &leftover_us); in delta_new()
2447 y = accum("milliseconds", x, ms, us_per_ms, &leftover_us); in delta_new()
2451 y = accum("seconds", x, second, us_per_second, &leftover_us); in delta_new()
2455 y = accum("minutes", x, minute, us_per_minute, &leftover_us); in delta_new()
2459 y = accum("hours", x, hour, us_per_hour, &leftover_us); in delta_new()
2463 y = accum("days", x, day, us_per_day, &leftover_us); in delta_new()
2467 y = accum("weeks", x, week, us_per_week, &leftover_us); in delta_new()
2470 if (leftover_us) { in delta_new()
2472 double whole_us = round(leftover_us); in delta_new()
[all …]