Fixed #30990 -- Fixed example output in 'z' date format docs.

This commit is contained in:
Baptiste Mispelon 2019-11-15 17:28:48 +01:00 committed by Mariusz Felisiak
parent 18e10740a4
commit 1185c6172b
2 changed files with 2 additions and 2 deletions

View File

@ -348,7 +348,7 @@ class DateFormat(TimeFormat):
return self.data.year
def z(self):
"Day of the year; i.e. '0' to '365'"
"""Day of the year, i.e. 1 to 366."""
doy = self.year_days[self.data.month] + self.data.day
if self.L() and self.data.month > 2:
doy += 1

View File

@ -1352,7 +1352,7 @@ Format character Description Example output
month, 2 characters.
``w`` Day of the week, digits without ``'0'`` (Sunday) to ``'6'`` (Saturday)
leading zeros.
``z`` Day of the year. ``0`` to ``365``
``z`` Day of the year. ``1`` to ``366``
**Week**
``W`` ISO-8601 week number of year, with ``1``, ``53``
weeks starting on Monday.