Ticket #3311: naturalday_docs_v2.diff
File naturalday_docs_v2.diff, 666 bytes (added by , 18 years ago) |
---|
-
add_ons.txt
130 130 131 131 You can pass in either an integer or a string representation of an integer. 132 132 133 naturalday 134 ---------- 135 136 Converts a date to natural string, if it's today, tomorrow or yesterday 137 138 Examples (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 133 147 flatpages 134 148 ========= 135 149