[xquery-talk] compare dayTimeDuration ?

Andrew Welch andrew.j.welch at gmail.com
Fri Feb 23 15:43:22 PST 2007


On 2/23/07, Sébastien Geindre <sebastien.geindre at meteo.fr> wrote:
> John Snelson a écrit :
> > Have you tried the "=" or "eq" operators?
> >
> > John
> >
> i've tried, but it seems that the comparison is on the string

You need to make them dates first eg:

xs:date('2005-5-1') - xs:date('2004-5-1')

What sort of comparison are you trying to do?



More information about the talk mailing list