This is a follow up on the mailthread https://sourceforge.net/forum/message.php?msg_id=2620423
This issue seems indeed to be resolved in Saxon 8.1.1. The query
xs:dateTime("2004-11-25T18:00:00Z") eq xs:dateTime("2004-11-25T19:00:00+01:00"),
xs:dateTime("2004-11-25T18:00:00") eq xs:dateTime("2004-11-25T18:00:00+01:00"),
returns as expected:
true true PT1H
Consider now the following:
xs:dateTime("2004-11-25T18:00:00") - xs:dateTime("2004-11-25T18:00:00+01:00")
Both are equal, as demonstrated above, but substracting results in PT1H?
Yes, subtraction of date/times needs attention. I was waiting for some clarification of the precise rules from the WG, especially in the area of date subtraction - but the subtract...yielding() functions have now been abolished, which simplifies the problem. There are still some noises being made on the WG by people (especially RDBMS vendors) who want to change the rules completely, but I think they are now implementable in their current form.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.