CaRP: Caching RSS Parser - Documentation
Item Date
| GPL |
Koi |
Evolution |
| n/a |
>=3.0 |
>=3.0 |
Displaying the Item Date
To display the item date, include the word "date" in your
iorder setting.
For example:
CarpConf('iorder','link,date,desc');
Display formatting options
- bidate ("before item date") : Specifies text and/or HTML to be displayed before the item date.
- aidate ("after item date") : Specifies text and/or HTML to be displayed after the item date.
- idateformat ("item date format") : Specifies the formatting string that controls the format of the date.
Refer to the PHP manual page for more information.
- timeoffset [CaRP >= 3.5.5] : The number of minutes to add to or subtract from the timestamp in the feed before display.
This setting is useful for fixing feeds whose timestamps contain incorrect timezone information,
and for display on servers whose timeszones are incorrectly configured.
Example
CarpConf('bidate','<i>Posted on ');
CarpConf('aidate','</i><br />');
CarpConf('timeoffset',-60);
CarpConf('idateformat','j M Y \\a\\t g:i a');
The above code would format the item date as follows, after subtracting one hour (60 minutes) from the timestamp:
Posted on 12 Sep 2004 at 2:35 pm