Hello all,
I’m confused by values return by the years-from-duration function.
In the following code, $age duration is equal to P3071D which is a
correct value.
But years-from-duration function returns 0, and month-from-duration
also returns 0. Only days-from-duration return 3071.
let $d1 := xs:date('2001-10-03')
let $d2 := xs:date('2010-03-01')
let $age := xs:duration($d2 - $d1)
let $ageY := years-from-duration($age)
return <age>{$ageY}</age>
It sounds like a bug in the xQuery interpreter ?
Thank you for your help,
Willy
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion