Code

Ticket #3311: naturalday_docs_v2.diff

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

ReST typo fixed

Line 
1Index: add_ons.txt
2===================================================================
3--- add_ons.txt (revision 4537)
4+++ add_ons.txt (working copy)
5@@ -130,6 +130,20 @@
6 
7 You can pass in either an integer or a string representation of an integer.
8 
9+naturalday
10+----------
11+
12+Converts a date to natural string, if it's today, tomorrow or yesterday
13+
14+Examples (when 'today' is 17 Feb 2007):
15+
16+    * ``16 Feb 2007`` becomes ``yesterday``.
17+    * ``17 Feb 2007`` becomes ``today``.
18+    * ``18 Feb 2007`` becomes ``tomorrow``.
19+    * ``15 Feb 2007`` becomes whatever `DATE_FORMAT`_ specifies.
20+
21+.. _DATE_FORMAT: ../settings/#date_format
22+
23 flatpages
24 =========
25