Ticket #3311: naturalday_docs_v2.diff

File naturalday_docs_v2.diff, 666 bytes (added by Jyrki Pulliainen <jyrki.pulliainen@…>, 18 years ago)

ReST typo fixed

  • add_ons.txt

     
    130130
    131131You can pass in either an integer or a string representation of an integer.
    132132
     133naturalday
     134----------
     135
     136Converts a date to natural string, if it's today, tomorrow or yesterday
     137
     138Examples (when 'today' is 17 Feb 2007):
     139
     140    * ``16 Feb 2007`` becomes ``yesterday``.
     141    * ``17 Feb 2007`` becomes ``today``.
     142    * ``18 Feb 2007`` becomes ``tomorrow``.
     143    * ``15 Feb 2007`` becomes whatever `DATE_FORMAT`_ specifies.
     144
     145.. _DATE_FORMAT: ../settings/#date_format
     146
    133147flatpages
    134148=========
    135149
Back to Top