You can use
xdt:dayTimeDuration("P2DT12H") - xdt:dayTimeDuration("P1DT10H30M")
result: P1DT1H30M
2008/4/22, Miguel DeMelo <[EMAIL PROTECTED]>:
>
> How do I implement the following XQuery operation in MarkLogic?
>
>
>
> op:subtract-dayTimeDurations(xs:dayTimeDuration("P2DT12H"),
> xs:dayTimeDuration("P1DT10H30M"))
>
> *Kind Regards**
> *
>
> *Miguel De Melo
> **t:* +44 (0)20 7033 2333* m:* +44 (0) *f:* +44 (0)20 7033 2330
>
> *a: *Ixxus Limited,* *Holywell Centre, 1 Phipp Street, London, EC2A 4PS
> United Kingdom.
>
> www.ixxus.com
>
> This message should be regarded as confidential. If you have received
> this email in error please notify the sender and destroy it immediately.
> Statements of intent shall only become binding when confirmed in hard copy
> by an authorised signatory. Ixxus Limited is a Company registered in England
> under No: 04318632. Registered address: Ixxus Limited, Holywell Centre, 1
> Phipp Street, London, EC2A 4PS United Kingdom.
>
>
>
> _______________________________________________
> General mailing list
> [email protected]
> http://xqzone.com/mailman/listinfo/general
>
>
--
GangCheng Zhong
CTIT(China Tactic Information Technology Co., Ltd) http://www.ctit.cn
Software outsourcing and IT services bring IT excellence to you at lowest
cost
#4, 5th alley, South Shiyou 2nd St, YueXiu District, Guangzhou City,
Guangdong Province, PRC
Tel: +86(020) 3825-8036 / 3757-0597 | Fax:+86(020) 8736-2511
<<image001.gif>>
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
