Lines Matching refs:HASTZINFO
93 #define HASTZINFO(p) (((_PyDateTime_BaseTZInfo *)(p))->hastzinfo) macro
804 if (PyDateTime_Check(self) && HASTZINFO(self)) in get_tzinfo_member()
806 else if (PyTime_Check(self) && HASTZINFO(self)) in get_tzinfo_member()
2895 if (! HASTZINFO(dt) || dt->tzinfo != (PyObject *)self) { in tzinfo_fromutc()
3124 PyObject *result = HASTZINFO(self) ? self->tzinfo : Py_None; in time_tzinfo()
3210 if (HASTZINFO(self)) { in time_dealloc()
3223 return offset_as_timedelta(HASTZINFO(self) ? self->tzinfo : Py_None, in time_utcoffset()
3229 return offset_as_timedelta(HASTZINFO(self) ? self->tzinfo : Py_None, in time_dst()
3235 return call_tzname(HASTZINFO(self) ? self->tzinfo : Py_None, in time_tzname()
3264 if (result != NULL && HASTZINFO(self)) in time_repr()
3291 if (result == NULL || ! HASTZINFO(self) || self->tzinfo == Py_None) in time_isoformat()
3421 assert(HASTZINFO(self)); in time_hash()
3454 PyObject *tzinfo = HASTZINFO(self) ? self->tzinfo : Py_None; in time_replace()
3481 if (HASTZINFO(self) && self->tzinfo != Py_None) { in time_nonzero()
3505 if (! HASTZINFO(self) || self->tzinfo == Py_None) in time_getstate()
3648 PyObject *result = HASTZINFO(self) ? self->tzinfo : Py_None; in datetime_tzinfo()
4014 if (HASTZINFO(time)) in datetime_combine()
4036 if (HASTZINFO(self)) { in datetime_dealloc()
4049 return offset_as_timedelta(HASTZINFO(self) ? self->tzinfo : Py_None, in datetime_utcoffset()
4055 return offset_as_timedelta(HASTZINFO(self) ? self->tzinfo : Py_None, in datetime_dst()
4061 return call_tzname(HASTZINFO(self) ? self->tzinfo : Py_None, in datetime_tzname()
4095 HASTZINFO(date) ? date->tzinfo : Py_None); in add_datetime_timedelta()
4216 if (baserepr == NULL || ! HASTZINFO(self)) in datetime_repr()
4244 if (result == NULL || ! HASTZINFO(self)) in datetime_isoformat()
4367 assert(HASTZINFO(self)); in datetime_hash()
4399 PyObject *tzinfo = HASTZINFO(self) ? self->tzinfo : Py_None; in datetime_replace()
4428 if (!HASTZINFO(self) || self->tzinfo == Py_None) in datetime_astimezone()
4478 if (HASTZINFO(self) && self->tzinfo != Py_None) { in datetime_timetuple()
4525 HASTZINFO(self) ? self->tzinfo : Py_None); in datetime_gettimetz()
4540 if (HASTZINFO(self) && self->tzinfo != Py_None) { in datetime_utctimetuple()
4585 if (! HASTZINFO(self) || self->tzinfo == Py_None) in datetime_getstate()