• Home
  • Raw
  • Download

Lines Matching refs:PyLong_FromLong

1757     x1 = PyLong_FromLong(GET_TD_DAYS(self));  in delta_to_microseconds()
1767 x1 = PyLong_FromLong(GET_TD_SECONDS(self)); /* seconds */ in delta_to_microseconds()
1785 x2 = PyLong_FromLong(GET_TD_MICROSECONDS(self)); in delta_to_microseconds()
2441 x = PyLong_FromLong(0); in delta_new()
2505 temp = PyLong_FromLong((long)whole_us); in delta_new()
2762 return PyLong_FromLong(GET_YEAR(self)); in date_year()
2768 return PyLong_FromLong(GET_MONTH(self)); in date_month()
2774 return PyLong_FromLong(GET_DAY(self)); in date_day()
3217 return PyLong_FromLong(dow + 1); in date_isoweekday()
3343 PyTuple_SET_ITEM(self, 0, PyLong_FromLong(year)); in iso_calendar_date_new_impl()
3344 PyTuple_SET_ITEM(self, 1, PyLong_FromLong(week)); in iso_calendar_date_new_impl()
3345 PyTuple_SET_ITEM(self, 2, PyLong_FromLong(weekday)); in iso_calendar_date_new_impl()
3445 return PyLong_FromLong(ymd_to_ord(GET_YEAR(self), GET_MONTH(self), in date_toordinal()
3454 return PyLong_FromLong(dow); in date_weekday()
4093 return PyLong_FromLong(TIME_GET_HOUR(self)); in time_hour()
4099 return PyLong_FromLong(TIME_GET_MINUTE(self)); in time_minute()
4106 return PyLong_FromLong(TIME_GET_SECOND(self)); in py_time_second()
4112 return PyLong_FromLong(TIME_GET_MICROSECOND(self)); in time_microsecond()
4126 return PyLong_FromLong(TIME_GET_FOLD(self)); in time_fold()
4761 return PyLong_FromLong(DATE_GET_HOUR(self)); in datetime_hour()
4767 return PyLong_FromLong(DATE_GET_MINUTE(self)); in datetime_minute()
4773 return PyLong_FromLong(DATE_GET_SECOND(self)); in datetime_second()
4779 return PyLong_FromLong(DATE_GET_MICROSECOND(self)); in datetime_microsecond()
4793 return PyLong_FromLong(DATE_GET_FOLD(self)); in datetime_fold()
6672 us_per_ms = PyLong_FromLong(1000); in _datetime_exec()
6673 us_per_second = PyLong_FromLong(1000000); in _datetime_exec()
6674 us_per_minute = PyLong_FromLong(60000000); in _datetime_exec()
6675 seconds_per_day = PyLong_FromLong(24 * 3600); in _datetime_exec()