Discussion:
[basex-talk] Some timeDate arithmetic fail
Jan Dölle
2017-07-07 16:52:51 UTC
Permalink
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-***@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)
Christian Grün
2017-07-09 14:46:54 UTC
Permalink
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
Post by Jan Dölle
Hi,
xs:dateTime("2017-07-07T18:30:00.1") - xs:dayTimeDuration("PT1S")
= 2017-07-07T18:30:59.1 ?????
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
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)
Loading...