[Python-checkins] r81681 - python/trunk/Modules/datetimemodule.c
Alexander Belopolsky
alexander.belopolsky at gmail.com
Sat Jul 3 04:12:35 CEST 2010
On Thu, Jun 3, 2010 at 9:51 PM, sean.reifschneider
<python-checkins at python.org> wrote:
> Author: sean.reifschneider
> Date: Fri Jun 4 03:51:26 2010
> New Revision: 81681
>
> Log:
> Issue8810: Clearing up docstring for tzinfo.utcoffset.
..
> {"fromutc", (PyCFunction)tzinfo_fromutc, METH_O,
> - PyDoc_STR("datetime in UTC -> datetime in local time.")},
> + PyDoc_STR("datetime -> timedelta showing offset from UTC, negative "
> + "values indicating West of UTC")},
This is wrong. The fromutc method returns datetime, not timedelta.
See http://docs.python.org/dev/library/datetime.html#datetime.tzinfo.fromutc
More information about the Python-checkins
mailing list