Ticket #3311: naturalday_docs_r4537.diff

File naturalday_docs_r4537.diff, 658 bytes (added by Jyrki Pulliainen <jyrki.pulliainen@…>, 17 years ago)

Documentation for naturalday

  • 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:
     139
     140    Today is 17 Feb 2007
     141    * ``16 Feb 2007`` becomes ``yesterday``
     142    * ``17 Feb 2007`` becomes ``today``
     143    * ``18 Feb 2007`` becomes ``tomorrow``
     144    * ``15 Feb 2007`` becomes whatever `DATE_FORMAT`_ specifies
     145
     146.. _DATE_FORMAT: ../settings/#date_format
     147
    133148flatpages
    134149=========
    135150
Back to Top