Strange, I am not seeing this behaviour.  It might have been fixed in 6.0.2 
(which is what I am testing now and it works)
There were some datetime fixes in 6.0.2

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


From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Pascal Cadet
Sent: Monday, December 10, 2012 7:50 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Subtract a duration from a date

6.0-1.1

2012/12/10 David Lee <david....@marklogic.com<mailto:david....@marklogic.com>>
Curious what version of MarkLogic are you using ?


-----------------------------------------------------------------------------
David Lee
Lead Engineer
MarkLogic Corporation
d...@marklogic.com<mailto:d...@marklogic.com>
Phone: +1 812-482-5224<tel:%2B1%20812-482-5224>
Cell:  +1 812-630-7622<tel:%2B1%20812-630-7622>
www.marklogic.com<http://www.marklogic.com>


-----Original Message-----
From: 
general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>
 
[mailto: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<mailto:General@developer.marklogic.com>
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
General@developer.marklogic.com<mailto:General@developer.marklogic.com>
http://developer.marklogic.com/mailman/listinfo/general



--

Pascal CADET
06 12 97 02 53
www.pressinnov.com<http://www.pressinnov.com>

_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to