Lines Matching defs:object
570 * date/datetime object. Therefore it is always in [1, 12] range.
576 * for a datetime object, but we don't care about that here).
653 * Basic object allocation: tp_alloc implementations. These allocate
654 * Python objects of the right size and type, and do the Python object-
698 * Helpers for setting object fields. These work on pointers to the
1158 or a unicode object. */
1510 make_Zreplacement(PyObject *object, PyObject *tzinfoarg)
1513 PyObject *tzinfo = get_tzinfo_member(object);
1554 make_freplacement(PyObject *object)
1557 if (PyTime_Check(object))
1558 sprintf(freplacement, "%06d", TIME_GET_MICROSECOND(object));
1559 else if (PyDateTime_Check(object))
1560 sprintf(freplacement, "%06d", DATE_GET_MICROSECOND(object));
1571 * tzinfoarg is the argument to pass to the object's tzinfo method, if
1575 wrap_strftime(PyObject *object, PyObject *format, PyObject *timetuple,
1597 assert(object && format && timetuple);
1638 PyObject *tzinfo = get_tzinfo_member(object);
1664 Zreplacement = make_Zreplacement(object,
1679 freplacement = make_freplacement(object);
2930 "a date object. "
2998 timestamp: object
3303 This object may be accessed either as a tuple of\n\
3305 or via the object attributes as named in the above tuple.");
3623 PyDoc_STR("date(year, month, day) --> date object");
4275 "a time object. "
4564 /* Reduce this to a hash of another object. */
4770 PyDoc_STR("time([hour[, minute[, second[, microsecond[, tzinfo]]]]]) --> a time object\n\
4955 "a datetime object. "
5139 tz: object = None
5140 Timezone object.
5142 Returns new datetime object representing current time local to tz.
5897 return NotImplemented here to give the other object
5899 Date, if the other object is a Date, it would
6012 /* Reduce this to a hash of another object. */
6556 PyDoc_STR("Return date object with same year, month and day.")},
6559 PyDoc_STR("Return time object with same time but with tzinfo=None.")},
6562 PyDoc_STR("Return time object with same time and tzinfo.")},