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: Curt Arnold <carnold@houston.rr.com>
Date: Tue, 25 Jan 2000 08:42:32 -0600
Message-ID: <000f01bf6742$69776cc0$ca6b1b18@houston.rr.com>
To: <www-xml-schema-comments@w3.org>
Cc: <Steve_Slatcher@scientia.com>
Steve Slatcher wrote:

> In a timeDuration a month has 30 days!
So if someone is charging me $10 per month for a service, and I place an
order using XML Schema for P12M,  I will get 360 days of the service?  I
think not.  I would expect a year - 365 days or 366 days depending on the
context.  If I wanted 360 days, I would use P360D

Hopefully, the spec will make it clear that any approximation (either 1M ==
30D or 1M= 30.43D) is only used in the evaluation of boundaries.  I would
suggest that the parsers represent time duration as a class with both a
integer number of months and a float number of seconds.  Definitely, an
application must be able to distinguish between 1M and 30D.

Knowing the approximations, you can then choose your boundaries
appropriately.  If the approximation was 1M == 30D, then you would probably
use P366 as an maxInclusive bound which would both include the approximation
of 1Y == 360D and 365D or 366D.

Unfortunately, without an approximation (or some way to bind a timeDuration
to a specific instant in time), it is not possible to do a comparision
between durations with month and year terms and those with day, hour, minute
or second terms.

I still like my values better since they reduce some of the more blatant
errors in the approximation, however they are still an approximation.
Received on Tuesday, 25 January 2000 09:48:37 GMT

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