Timespan format
This is an open discussion with 8 replies, filed under XSLT.
Search
Timespan format
updated to version 1.0
on 2nd of June 2012
Nice work.
Hey, thanks man, hope its helpful.
I know I've implemented it across a few projects already.
Timespan format
updated to version 1.1
on 12th of July 2012
Updated formatting and syntax
Im having trouble with this utility using the example I get the following error:
Error: format parameter is not correctly set. You have: 19. at #h;:#0Nov; #NaN:pms; - Error: format parameter is not correctly set. You have: 19. at #h;:#0Jul; #NaN:pms;
I am assuming I have the wrong format-date template. What one am I suppose to be using? I have tried both of these and I get similar errors http://getsymphony.com/download/xslt-utilities/view/20744/ and https://raw.github.com/hananils/datetime/3.0.3/utilities/datetime.xsl
Here's the full code http://xpathr.com/view/5242898/c92fe4aa719c20ca6280af9cfb8d6de67603b728/
Have a look at the datetime
and timeranges
templates in our XSLT kit: https://github.com/hananils/kit
Both are updated versions of the template bundled with Date and Time.
Thanks Nils it works perfectly, after i added the new date and time datasource so I could get the month spelled out.
Create an account or sign in to comment.
A new XSLT utility, "Timespan format" is now available for download. Comments and feedback can be left here but if you discover any issues, please post it on the issue tracker.