W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2002

RE: Order relation on gMonthDay, gMonth, gDay

From: James Clark <jjc@jclark.com>
Date: Sun, 28 Apr 2002 07:08:50 +0700
To: Ashok Malhotra <ashokma@microsoft.com>, XML Schema Comments <www-xml-schema-comments@w3.org>
Message-ID: <1117663014.1019977730@[192.168.0.216]>
Right.  The leap year bit is only relevant for gMonthDay.  However, for 
gDay there's a similar issue: it's not an arbitrary month, but an arbitrary 
month with 31 days.

--On 27 April 2002 09:52 -0700 Ashok Malhotra <ashokma@microsoft.com> wrote:

> James, you said...
> "If gMonthDay values are considered as periods of time using an arbitrary
> leap year, ..."
>
> Similarly, for gMonth and gDay."
>
> I agree for gMonthDay since --2-29 is a legal value.  But for gMonth
> there is no connection with leap year.  It's just the start of the month
> in any year.  For gDay it's "... arbitrary year and month in which the
> date occurs".
>
> All the best, Ashok
> ===========================================================
>
>
> -----Original Message-----
> From: James Clark [mailto:jjc@jclark.com]
> Sent: Tuesday, April 23, 2002 10:16 PM
> To: XML Schema Comments
> Subject: Order relation on gMonthDay, gMonth, gDay
>
> The order relation on date is specified as:
>
> "If date values are considered as periods of time, the order relation on
> date values is the order relation on their starting instants."
>
> This makes sense to me.
>
> The order relation on time is specified as:
>
> "The order relation on time values is the Order relation on dateTime
> (3.2.7.3) using an arbitrary date."
>
> This also makes sense to me.
>
> Now consider the order relation on eg gMonthDay:
>
> "If gMonthDay values are considered as periods of time, the order relation
> on gMonthDay values is the order relation on their starting instants."
>
> I don't think this is quite right.  A gMonthDay is not a single period of
> time but a recurring period.  The dateTime ordering relation compares two
> specific instants of time. Thus in order to turn a gMonthDay into a
> specific instant of time, you need to use an arbitrary year (just as with
> time you need to use an arbitrary date).  However, I'm guessing --02-29
> is allowed as a gMonthDay; if so, the year is not an arbitrary year but
> an arbitrary leap year.
>
> So the spec should say something like:
>
> "If gMonthDay values are considered as periods of time using an arbitrary
> leap year, ..."
>
> Similarly, for gMonth and gDay.
>
> James
>
>
>
Received on Saturday, 27 April 2002 20:06:38 GMT

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