[Bug 6939] "time" value comparison

http://www.w3.org/Bugs/Public/show_bug.cgi?id=6939


Dave Peterson <davep@iit.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |davep@iit.edu




--- Comment #3 from Dave Peterson <davep@iit.edu>  2009-06-08 23:59:53 ---
(In reply to comment #1)
> (In reply to comment #0)
> > In "3.3.9 time":
> 
> > Consider the untimezoned time value "12:00:00". What timezoned value(s) can be
> > comparable?
> 
> E.g., 23:59:59-14:00 > 12:00:00-14:00:00 > 12:00:00+14:00, so 23:59:59-14:00 >
> 12:00:00 .
> 
> >             It's not clear how the 52-hour interval is relevant (it's for a
> > calendar day, not a time value)
> 
> Well, from 00:00:00+14:00 to 23:59:59.99...-14:00 is almost (how many nines did
> you fill in?) 52 hours.

Further explanation:  A time value does repeat each day, but comparing two time
values means pick a (calendar) day and then compare the two values for that
same (calendar) day.  The WG long ago considered alternatives, determined that
all alternatives gave rise to some unintuitive results, and for uniformity
picked one way for all the date/time datatypes that seemed to be least
unreasonable.  When in doubt, compute the actual timeOnTimeline values.

> >                                and why the incomparable range is 24 hours wide
> > (I would think 28).
> 
> You may be right on this one.  I'll have to chew on it for a while.

Perhaps tricky to envision, but imagine a timeline of 52 hours.  The day of
timezone +14:00 begins earliest and ends 24 hours later.  Other days start
later and end later; finally the day of timezone -1400 begins four hours after
the earliest day (+14:00) ends.  Given any untimezoned time xx:yy:zz, any
timezoned time whose timeOnTimeline is within the interval (bounded by the
timeOnTimeline of) xx:yy:zz+14:00 and xx;yy:zz-14:00 is incomparable with
xx:yy:zz,  This interval is 28 hours wide.  time values whose timeOnTimeline is
outside this interval will be comparable.  So Sandy is correct:  28 hours wide.

I've scanned through the sections defining the various date/time datatypes; the
time section appears to be the only place where the width of the "incomparable
interval" is mentioned.  Formal proposal:  In the Note quoted in comment 0,
replace '24 hours' by '28 hours'.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 8 June 2009 23:59:59 UTC