W3C home > Mailing lists > Public > www-forms@w3.org > September 2003

RE: duration

From: Micah Dubinko <MDubinko@cardiff.com>
Date: Tue, 23 Sep 2003 22:09:10 -0700
Message-ID: <BD2DBD26EE0BAA48B1A425C7BE7923002D06F4@csmail.cardiff.com>
To: 'Jeremy Johnson' <jeremy.johnson@imtc.gatech.edu>, www-forms@w3.org

Duration wasn't dropped, it is just used slightly differently.

XForms has two datatypes derived from xsd:duration (yearMonthDuration and
dayTimeDuration), meant to parallel the types of the same name defined in
XML Query.

The big-picture reason for doing this in either specification is that
year/month durations are fundamentally incomparable with
second/minute/hour/day durations. For example, which is bigger: 29 days or 1
month? Without getting more specific (which month?) you can't say for sure.

The split out duration datatypes, however, are completely ordered, which
makes comparisons (within the same datatype) fully determinable, without
needing additional information.


-----Original Message-----
From: Jeremy Johnson [mailto:jeremy.johnson@imtc.gatech.edu]
Sent: Tuesday, September 23, 2003 12:10 PM
To: www-forms@w3.org
Subject: xsd:duration

Would someone mind briefly explaining why the xsd:duration data type was
dropped from XForms?
  .: jeremy.johnson@imtc.gatech.edu :.
.: interactive.media.technology.center :.
  .: georgia.institute.of.technology :.
Received on Wednesday, 24 September 2003 01:09:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:08 UTC