Some timeDate arithmetic fail
Friday, 7 July 2017 · 2 messages · last reply 9 Jul 2017
JD
Jan Dölle7 Jul 2017 18:52 #
Hi,
please try this:
xs:dateTime("2017-07-07T18:30:00.1") - xs:dayTimeDuration("PT1S") = 2017-07-07T18:30:59.1 ?????
or that:
xs:dateTime("2017-07-07T18:00:59.1") - xs:dayTimeDuration("PT1M") = 2017-07-07T18:00:59.1 ?????
I think, there is a bug :(
Best Regards
Jan
--
Jan Dölle
E-Mail: basex-list at id1.de Telefon +49-69-244502-0 Home: www.id1.de
Information Design One AG, Baseler Straße 10, 60329 Frankfurt am Main Registereintrag: Amtsgericht Frankfurt am Main, HRB 52596
Vorstand: Robert Peters, Aufsichtsrat: Christian Hecht (Vorsitz)
CG
Christian Grün9 Jul 2017 16:46 #
Hi Jan,
Thanks for the hint, this has been fixed [1,2].
Best,
Christian
[1] http://files.basex.org/releases/latest/
[2] https://github.com/BaseXdb/basex/commit/88a143f70efc74b1f4e917ab5085fa9b2af256b7
Quoted text · Jan Dölle · 29 lines
On Fri, Jul 7, 2017 at 6:52 PM, Jan Dölle <basex-list at id1.de> wrote: > Hi, > > please try this: > > xs:dateTime("2017-07-07T18:30:00.1") - xs:dayTimeDuration("PT1S") > = 2017-07-07T18:30:59.1 ????? > > or that: > > xs:dateTime("2017-07-07T18:00:59.1") - xs:dayTimeDuration("PT1M") > = 2017-07-07T18:00:59.1 ????? > > I think, there is a bug :( > > Best Regards > > Jan > > > -- > Jan Dölle > E-Mail: basex-list at id1.de Telefon +49-69-244502-0 Home: www.id1.de > > Information Design One AG, Baseler Straße 10, 60329 Frankfurt am Main > Registereintrag: Amtsgericht Frankfurt am Main, HRB 52596 > Vorstand: Robert Peters, Aufsichtsrat: Christian Hecht (Vorsitz) > >
Written for BaseX 8.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery