From: Andrew Svetlov Date: Thu, 6 Dec 2012 14:32:37 +0000 (+0200) Subject: Document that hour in datetime.time ctor is optional parameter. X-Git-Tag: v2.7.5~109^2~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=766849b978efd35c483348f8b1a788f6200cb215;p=python Document that hour in datetime.time ctor is optional parameter. Thanks to Sean Munkel from docs@ --- diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index 50b488b7cd..b6a2070cfd 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -1154,7 +1154,7 @@ Using datetime with tzinfo: A time object represents a (local) time of day, independent of any particular day, and subject to adjustment via a :class:`tzinfo` object. -.. class:: time(hour[, minute[, second[, microsecond[, tzinfo]]]]) +.. class:: time([hour[, minute[, second[, microsecond[, tzinfo]]]]]) All arguments are optional. *tzinfo* may be ``None``, or an instance of a :class:`tzinfo` subclass. The remaining arguments may be ints or longs, in the