[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Is xs:date('2012-09-10+14:00') less than xs:date(
On 17/09/2012, G. Ken Holman <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote: > At 2012-09-17 20:01 +0000, Costello, Roger L. wrote: >> >> xs:date('2012-09-10+14:00') lt xs:date('2012-09-11-14:00') >> >>September 10, 2012 plus 14 hours is less than September 11, 2012 >>minus 14 hours? >> >>As I calculate it, >> >> September 10, 2012 plus 14 hours is 2:00 PM on September 10, 2012 >> >>and >> >> September 11, 2012 minus 14 hours is 10:00 AM on September 10, 2012 >> >>No? > > No, not at all. Your mistake is that it isn't a calculation. Well, it is, in a way, but the time zone offset must be *subtracted* in order to arrive at comparable values. > > The +14:00 is not a time delta, it is an indication of where in the > world the date you have is found. And I'm not sure +/- 14:00 is > allowed ... I think time zones only go up to +/-13:00. Ah, I'm > wrong, there is a +14:00, and there is a -12:00, but nothing beyond: > > http://en.wikipedia.org/wiki/UTC%2B14:00 > http://en.wikipedia.org/wiki/UTC-12:00 > XML Schema Part 2 permits +/- 14:00, noting that "future local laws" might make use of this full range. -W
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|