W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2004

[F&O] C.6 Working With xs:duration Values

From: Till Westmann <till.westmann@bea.com>
Date: Sat, 14 Feb 2004 11:36:35 +0100
Message-Id: <A964D696-5ED9-11D8-BFA6-0003937524E8@bea.com>
To: public-qt-comments@w3.org

The XQuery version should shortened to:

declare function eg:duration-equal($arg1 as xs:duration, $arg2 as 
xs:duration)
     as xs:boolean
{
   return ( ( cast as xdt:yearMonthDuration($arg1) eq
              cast as xdt:yearMonthDuration($arg2) )
            and
            ( cast as xdt:dayTimeDuration($arg1) eq
              cast as xdt:dayTimeDuration($arg2) )
}

Till Westmann
Received on Saturday, 14 February 2004 05:46:23 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:13:57 UTC