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
Item Date
Evolution | LE | Koi | SE |
All | All | All | n/a |
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.
- iidateformat [CaRP >= 4.0.18] : ("item 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 idateformat is used instead. If this setting is set, idateformat 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('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