Changes between Initial Version and Version 4 of Ticket #31006


Ignore:
Timestamp:
Nov 23, 2019, 8:52:32 AM (4 years ago)
Author:
Mariusz Felisiak
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31006

    • Property Owner changed from nobody to Ryan Cheley
    • Property Status newassigned
    • Property Triage Stage UnreviewedAccepted
    • Property Summary Document how to escape a date/time format character for the |date and |time filtersDocument how to escape a date/time format character for the |date and |time filters.
    • Property Has patch set
  • Ticket #31006 – Description

    initial v4  
    33It's only documented as part of the [https://docs.djangoproject.com/en/dev/ref/templates/builtins/#std:templatetag-now now] template tag:
    44
    5     Note that you can backslash-escape a format string if you want to use the “raw” value. In this example, both “o” and “f” are backslash-escaped, because otherwise each is a format string that displays the year and the time, respectively:
    6         It is the {% now "jS \o\f F" %}
    7     This would display as “It is the 4th of September”.
    8 
     5> Note that you can backslash-escape a format string if you want to use the “raw” value. In this example, both “o” and “f” are backslash-escaped, because otherwise each is a format string that displays the year and the time, respectively:
     6> It is the {% now "jS \o\f F" %}
     7> This would display as “It is the 4th of September”.
    98
    109Historically, the big table with all the available format characters used to be next to the documentation for `{% now %}` but it was moved at some point (to be with the documentation for `|date`.
Back to Top