CaRP: Caching RSS Parser - Documentation
Channel Date
| GPL |
Koi |
Evolution |
| n/a |
>=3.3 |
>=3.3 |
Displaying the Channel Date
To display the channel date, include the word "date" in your
cborder or caorder setting.
For example:
CarpConf('cborder','link,date,desc');
Display formatting options
- bcdate ("before channel date") : Specifies text and/or HTML to be displayed before the channel date.
- acdate ("after channel date") : Specifies text and/or HTML to be displayed after the channel date.
- cdateformat ("channel 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('bcdate','<i>Last updated on ');
CarpConf('acdate','</i><br />');
CarpConf('timeoffset',-60);
CarpConf('cdateformat','j M Y');
The above code would format the channel date as follows, after subtracting one hour (60 minutes) from the timestamp
(which will only matter in this case during the first hour of the day):
Last updated on 12 Sep 2004
Note that the time could also be displayed, depending on the cdateformat setting.