#31006: Document how to escape a date/time format character for the |date and 
|time
filters.
-------------------------------------+-------------------------------------
     Reporter:  Baptiste Mispelon    |                    Owner:  Ryan
         Type:                       |  Cheley
  Cleanup/optimization               |                   Status:  assigned
    Component:  Documentation        |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by felixxm):

 * stage:  Unreviewed => Accepted


Comment:

 `date` documentation contains an example with escaped format characters:

 > outputs 9 de Enero de 2008 (the DATE_FORMAT format specifier for the es
 locale is r'j \d\e F \d\e Y'.

 so maybe we can add a short explanation to this example, e.g.:

 > outputs 9 de Enero de 2008 (the DATE_FORMAT format specifier for the es
 locale is r'j \d\e F \d\e Y'). Both ā€œdā€ and ā€œeā€ are backslash-escaped,
 because otherwise each is a format string that displays the day and the
 timezone name, respectively.

 I also agree to duplicate backslash example to the `time` documentation.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31006#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.b4922fdf8e4fbbe5da4e98a422997810%40djangoproject.com.

Reply via email to