[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(

Subject: Re: Is xs:date('2012-09-10+14:00') less than xs:date('2012-09-11-14:00') ?
From: Wolfgang Laun <wolfgang.laun@xxxxxxxxx>
Date: Tue, 18 Sep 2012 08:38:23 +0200
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.