Curious what version of MarkLogic are you using ?

-----------------------------------------------------------------------------
David Lee
Lead Engineer
MarkLogic Corporation
d...@marklogic.com
Phone: +1 812-482-5224
Cell:  +1 812-630-7622
www.marklogic.com


-----Original Message-----
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Florent Georges
Sent: Monday, December 10, 2012 7:06 AM
To: MarkLogic General ML
Subject: [MarkLogic Dev General] Subtract a duration from a date

  Hi,

  I guess I am missing the obvious, but the following query:

    xs:date('2012-08-29') - xs:dayTimeDuration('P1D')

when run in QConsole, returns 2012-08-27, where I would have
expected 2012-08-28.

  Do I do anything wrong?

  Regards,
 

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to