Index: Modules/datetimemodule.c =================================================================== --- Modules/datetimemodule.c (revision 81601) +++ Modules/datetimemodule.c (working copy) @@ -2865,6 +2865,14 @@ return tzinfo_nogo("utcoffset"); } +PyDoc_STRVAR(tzinfo_utcoffset_doc, +"utcoffset() -> offset\n\ +\n\ +If self.tzinfo is None, returns None, else returns\n\ +self.tzinfo.utcoffset(self), and raises an exception if the latter\n\ +doesn't return None, or a timedelta object representing a whole number\n\ +of minutes with magnitude less than one day.\n"); + static PyObject * tzinfo_dst(PyDateTime_TZInfo *self, PyObject *dt) { @@ -3019,8 +3027,7 @@ PyDoc_STR("datetime -> string name of time zone.")}, {"utcoffset", (PyCFunction)tzinfo_utcoffset, METH_O, - PyDoc_STR("datetime -> minutes east of UTC (negative for " - "west of UTC).")}, + tzinfo_utcoffset_doc}, {"dst", (PyCFunction)tzinfo_dst, METH_O, PyDoc_STR("datetime -> DST offset in minutes east of UTC.")},