CaRP: Caching RSS Parser - Documentation
CaRP Interactive FAQ
Getting Started: Free Download | Purchase | Install
Reference: Functions | Plugins | Themes | Full Index
Etc.: Display Formatting | Example Code | Affiliates
Getting Started: Free Download | Purchase | Install
Reference: Functions | Plugins | Themes | Full Index
Etc.: Display Formatting | Example Code | Affiliates
Channel Date
Evolution | LE | Koi | SE |
All | All | >=3.3 | n/a |
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.
- cidateformat [CaRP >= 4.0.18] : ("channel international date format") : Specifies the formatting string that controls the format of the date based on the currently selected locale. Refer to the PHP manual page for more information. By default, this setting is blank, and cdateformat is used instead. If this setting is set, cdateformat is ignored.
- 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 2004Note that the time could also be displayed, depending on the cdateformat setting.