Changes between Initial Version and Version 4 of Ticket #31006


Ignore:
Timestamp:
11/23/2019 08:52:32 AM (10 months ago)
Author:
felixxm
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31006

    • Property Status changed from new to assigned
    • Property Summary changed from Document how to escape a date/time format character for the |date and |time filters to Document how to escape a date/time format character for the |date and |time filters.
    • Property Owner changed from nobody to Ryan Cheley
    • Property Has patch set
    • Property Triage Stage changed from Unreviewed to Accepted
  • 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