Project

Profile

Help

More on implicit timezones

Added by Anonymous almost 20 years ago

Legacy ID: #2868362 Legacy Poster: marcvc (marcvc)

Michael, 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"), fn:implicit-timezone() 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? Thanks, Marc


Replies (1)

RE: More on implicit timezones - Added by Anonymous almost 20 years ago

Legacy ID: #2868439 Legacy Poster: Michael Kay (mhkay)

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

    (1-1/1)

    Please register to reply