xsl-list
[Top] [All Lists]

RE: counting dates [help]

2005-06-06 14:56:45
Hi there!

I need your help!

I need to get a 'duration' between date1 (e.g. 2005-05-10) and date2 (e.g. 
2005-07-10)
in DAYS in 'XSL'.

I don't know how to manage it. I would be appreciative if anybody could help me.

Thanks a lot!
Dariusz



xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com schrieb am 06.06.05 15:43:11:

   XSLT 2.0 has following function to do date
arithmetic you wish ..

fn:subtract-dates-yielding-yearMonthDuration(
dateTime? $operand1, dateTime? $operand2) ?¨
yearMonthDuration?


This function was in earlier drafts but is not present in the latest
specifications.

Michael Kay
http://www.saxonica.com/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>