[xquery-talk] compare dayTimeDuration ?

Ilya Sterin sterini at gmail.com
Fri Feb 23 10:47:24 PST 2007


A simple look at the docs would of yielded the answer...

http://www.w3.org/TR/xpath-functions/#durations-dates-times

Ilya

On 2/23/07, Andrew Welch <andrew.j.welch at gmail.com> wrote:
> 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?
>
> _______________________________________________
> talk at x-query.com
> http://x-query.com/mailman/listinfo/talk
>



More information about the talk mailing list