W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2000

Re: More tweaks on time related datatypes and minor editorial

From: <petsa@us.ibm.com>
Date: Mon, 24 Jan 2000 09:03:46 -0500
To: "Curt Arnold" <carnold@houston.rr.com>
cc: www-xml-schema-comments@w3.org, gtj@peakin.com
Message-ID: <85256870.004D3DCF.00@D51MTA03.pok.ibm.com>
In a timeDuration a month has 30 days!

All the best, Ashok


"Curt Arnold" <carnold@houston.rr.com>@w3.org on 01/22/2000 01:12:38 AM

Please respond to "Curt Arnold" <carnold@houston.rr.com>

Sent by:  www-xml-schema-comments-request@w3.org


To:   <www-xml-schema-comments@w3.org>
cc:   <gtj@peakin.com>
Subject:  More tweaks on time related datatypes and minor editorial



This is somewhat related to George Joseph's previous post.

1) First, my interpretation of this statement:

   Time periods, i.e. specific durations of time, can be represented by
supplying two items of information:
   a start instant and a duration or a start instant and an end instant or
an end instant and a duration.

Is that a time period, could be represented by the combination of two
attributes (or two element content) where one is a timeInstant and the
other
a timeDuration or timeInstant, for example:

<quietPeriod start="1999-11-05T12:00:00Z" end="1999-12-17T00:00:00Z"/>
or
<quitePeriod start="1999-11-05T12:00:00Z" duration="1M12D"/>

George's interpretation is this is an allowance for ISO8601's time period
formats such as

<quietPeriod start="1999-11-05T12:00:00Z/1999-12-17T00:00:00Z"/>

I believe that my interpretation is consistent with the preceding
discussion
of the lexical representation, but please clarify for George and possibly
make the quoted paragraph less ambiguous.

2) Comparisons of timeDurations

As discussed in previous messages, evaluation of min and max constraints on
timeDuration can be problematic since the month and year terms are
imprecise
(months being between 28-31 days and years being 365 or 366 days).  Based
on
a suggestion George made on the Xerces list (and attributed to the ISO 8601
spec, but I can't find any mention of it). I would recommend that for
evaluation of min and max constraints on timeDurations (and only for that
comparision) that fixed unambiguous durations be specified for year and
date.  Somebody can check my math, but for a 400 year cycle, the average
length of a year is 31556952 seconds.  One twelveth (a month) of this is
2629746 seconds.  These values would result in P1Y == P12M, P366D > P1Y >
P365D, P31D > P1M > P30D.  I think this is reasonable behavior and resolves
a sticky issue.  However, the recommendation must explicitly describe how
this comparision should be performed.


3) Elimination of time zone offsets on timeInstant and time types.

Currently, timeInstant and time allow either a 'Z' to indicate Universal
Coordinated Time or a time zone offset from UTC in the format
('+'|'-')hh:mm.  It substantially complicates comparsion of times when the
times have different time zone offsets.  When the time zone offset are the
same, comparisions can be made lexically.  The time zone offset is either a
hint at the time zone of some action or observer or an attempt to make the
format more presentable to someone reading the XML file.  If the first,
then
that information should be made explicit.  If the second, then that
violates
the spirit of XML to keep data and presentation separate and does so at the
cost of complexity and possibly performance degradation.

My suggestion is that only Z be supported for timeInstant and time.  This
would allow these types to lexically compared.  If a time zone offset for a
display or a particular location needs to be specified, it could be
specified with an additional attribute (or element) with a timeDuration
datatype.

<Flight number="1234" departCode="IAH" departTime="14:23:00Z"
departTimezone="-PT6H" arriveCode="DTW" arriveTime="16:54:00Z"
arriveTimezone="-PT5H"/>


dates would still need to allow a time zone qualifier.  I would suggest
that
the time zone qualifer be ignored in the evaluation of min and max
constraints on dates.
Received on Monday, 24 January 2000 09:05:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:46 GMT