1
0
mirror of https://github.com/django/django.git synced 2025-07-19 17:19:12 +00:00

[1.9.x] Fixed #26275 -- Noted difference between o and Y date format chars.

Backport of 5fb9756eba01237cc0e550da689b9b79c51c96ed from master
This commit is contained in:
inondle 2016-02-26 13:44:22 -08:00 committed by Tim Graham
parent ba6f83ec95
commit e96cdc6f99

View File

@ -1349,8 +1349,9 @@ n Month without leading zeros. ``'1'`` to ``'12'``
N Month abbreviation in Associated Press ``'Jan.'``, ``'Feb.'``, ``'March'``, ``'May'`` N Month abbreviation in Associated Press ``'Jan.'``, ``'Feb.'``, ``'March'``, ``'May'``
style. Proprietary extension. style. Proprietary extension.
o ISO-8601 week-numbering year, ``'1999'`` o ISO-8601 week-numbering year, ``'1999'``
corresponding to corresponding to the ISO-8601 week
the ISO-8601 week number (W) number (W) which uses leap weeks. See Y
for the more common year format.
O Difference to Greenwich time in hours. ``'+0200'`` O Difference to Greenwich time in hours. ``'+0200'``
P Time, in 12-hour hours, minutes and ``'1 a.m.'``, ``'1:30 p.m.'``, ``'midnight'``, ``'noon'``, ``'12:30 p.m.'`` P Time, in 12-hour hours, minutes and ``'1 a.m.'``, ``'1:30 p.m.'``, ``'midnight'``, ``'noon'``, ``'12:30 p.m.'``
'a.m.'/'p.m.', with minutes left off 'a.m.'/'p.m.', with minutes left off