Ticket #159 (closed enhancement: fixed)
XSL-Callback for formatting dates and timestamps
| Reported by: | mikey | Owned by: | mikey |
|---|---|---|---|
| Priority: | major | Milestone: | 0.9.0 |
| Component: | XML/XSL view engine | Version: | SVN-trunk |
| Keywords: | Cc: | prema |
Description
There should be some callbacks which allow simple formatting of dates and timestamps within xsl stylesheets. Proposed tags:
<stub:date format="Y-m-d" timestamp="1234567890"/>
Attribute timestamp should be optional, if not set the current timestamp will be used. This callback will use PHP function date().
<stub:localeDate format="%d %b %Y" timestamp="1234567890"/>
Attribute timestamp should be optional, if not set the current timestamp will be used. This callback will use PHP function strftime() with support for localized date strings.
Change History
Note: See
TracTickets for help on using
tickets.
