More on implicit timezones

  • marcvc

    marcvc - 2004-11-25


    This is a follow up on the mailthread

    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?


    • Michael Kay

      Michael Kay - 2004-11-25

      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.

      Michael Kay


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks