dayTimeDuration operation results and fn:implicit-timezone()
707938Jun 22 2009 — edited Jun 23 2009This should be simple, but I don't know if it's an issue with xquila, bdbxml or if it's something I am doing wrong in my xquery.
Problem is I need the classic unix/posix representation of seconds since ... you know, so while running in windows and issuing:
(current-dateTime() - xs:dateTime('1970-01-01T00:00:00')) div xs:dayTimeDuration('PT1S')
gives me a value 3 hours different from what system is giving me and when I issue
fn:implicit-timezone()
I get what I should -PT3H which is righ for my machine.
is this right? for the time being I am forcing it by adding (fn:implicit-timezone() div xdt:dayTimeDuration('PT1S')) * -1 to the result.
Is this the correct behavior?