Skip to content

Commit

Permalink
[1.6.x] Fixed #21133 -- Clarifed documentation about strftime formatt…
Browse files Browse the repository at this point in the history
…ing.

Backport of 43a2ec7 from master
  • Loading branch information
funkybob authored and timgraham committed Sep 21, 2013
1 parent 0ad178c commit e94efee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/ref/class-based-views/mixins-date-based.txt
Expand Up @@ -4,6 +4,11 @@ Date-based mixins

.. currentmodule:: django.views.generic.dates

.. note::
All the date formatting attributes in these mixins use
:func:`~time.strftime` format characters. Do not try to use the format
characters from the :ttag:`now` template tag as they are not compatible.

YearMixin
---------

Expand Down
4 changes: 4 additions & 0 deletions docs/ref/templates/builtins.txt
Expand Up @@ -1245,6 +1245,10 @@ Formats a date according to the given format.
Uses a similar format as PHP's ``date()`` function (http://php.net/date)
with some differences.

.. note::
These format characters are not used in Django outside of templates. They
were designed to be compatible with PHP to ease transitioning for designers.

Available format strings:

================ ======================================== =====================
Expand Down

0 comments on commit e94efee

Please sign in to comment.