| | 133 | naturalday |
|---|
| | 134 | ---------- |
|---|
| | 135 | |
|---|
| | 136 | Converts a date to natural string, if it's today, tomorrow or yesterday |
|---|
| | 137 | |
|---|
| | 138 | **Argument:** Date formatting string as described in default tag now_. |
|---|
| | 139 | |
|---|
| | 140 | .. _now: ../templates/#now |
|---|
| | 141 | |
|---|
| | 142 | Examples (when 'today' is 17 Feb 2007): |
|---|
| | 143 | |
|---|
| | 144 | * ``16 Feb 2007`` becomes ``yesterday``. |
|---|
| | 145 | * ``17 Feb 2007`` becomes ``today``. |
|---|
| | 146 | * ``18 Feb 2007`` becomes ``tomorrow``. |
|---|
| | 147 | * Any other day is formatted according to given argument or `DATE_FORMAT`_ if |
|---|
| | 148 | argument is not given. |
|---|
| | 149 | |
|---|
| | 150 | .. _DATE_FORMAT: ../settings/#date_format |
|---|
| | 151 | |
|---|