Lines Matching defs:dst

1302 /* Call tzinfo.dst(tzinfoarg), and extract an integer from the
1303 * result. tzinfo must be an instance of the tzinfo class. If dst()
1304 * returns None, call_dst returns 0 and sets *none to 1. If dst()
1306 * returns -1. If dst() returns an invalid timedelta for a UTC offset,
1313 return call_tzinfo_method(tzinfo, "dst", tzinfoarg);
3723 return tzinfo_nogo("dst");
3737 PyObject *off = NULL, *dst = NULL;
3760 dst = datetime_dst(dt, NULL);
3761 if (dst == NULL)
3763 if (dst == Py_None) {
3765 "dst() result required");
3769 delta = (PyDateTime_Delta *)delta_subtract(off, dst);
3776 Py_DECREF(dst);
3777 dst = call_dst(GET_DT_TZINFO(dt), result);
3778 if (dst == NULL)
3780 if (dst == Py_None)
3782 if (delta_bool((PyDateTime_Delta *)dst) != 0) {
3784 (PyDateTime_Delta *)dst, 1));
3789 Py_DECREF(dst);
3794 PyErr_SetString(PyExc_ValueError, "fromutc: tz.dst() gave "
3800 Py_XDECREF(dst);
3850 {"dst", (PyCFunction)tzinfo_dst, METH_O,
3947 /* Check argument type passed to tzname, utcoffset, or dst methods.
4047 if (_timezone_check_argument(dt, "dst") == -1)
4086 {"dst", (PyCFunction)timezone_dst, METH_O,
4452 0, 1, -1); /* weekday, daynum, dst */
4751 {"dst", (PyCFunction)time_dst, METH_NOARGS,
4752 PyDoc_STR("Return self.tzinfo.dst(self).")},
6308 PyObject * dst;
6310 dst = call_dst(self->tzinfo, (PyObject *)self);
6311 if (dst == NULL)
6314 if (dst != Py_None)
6315 dstflag = delta_bool((PyDateTime_Delta *)dst);
6316 Py_DECREF(dst);
6592 {"dst", (PyCFunction)datetime_dst, METH_NOARGS,
6593 PyDoc_STR("Return self.tzinfo.dst(self).")},
6929 x.d = x.dst(), and assuming that doesn't raise an exception or
7065 a dst() offset, and starting *from* a time already in DST (we know z.d != 0),
7066 would have to change the result dst() returns: we start in DST, and moving
7087 and we would have stopped then), and there are only 2 possible values dst() can
7090 two possible dst() outcomes, one zero and the other non-zero). Therefore
7117 small dst() may get within its bounds; and it doesn't even matter if some
7118 perverse time zone returns a negative dst()). So a breaking case must be