W3C home > Mailing lists > Public > www-xpath-comments@w3.org > January to March 2002

RE: Date and time functions in XPath 2.0

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Wed, 27 Feb 2002 18:07:36 +0100
Message-ID: <DFF2AC9E3583D511A21F0008C7E6210602679C7B@daemsg02.software-ag.de>
To: "'Mike Schilling'" <mschilling@edgility.com>, www-xpath-comments@w3.org
Thanks, yes, we're aware that the functions currently defined on dates and
times are in a rather unsatisfactory state, and there's a lot of work going
on to improve this situation for the next draft.

Mike Kay

> -----Original Message-----
> From: Mike Schilling [mailto:mschilling@edgility.com]
> Sent: 26 February 2002 21:11
> To: www-xpath-comments@w3.org
> Subject: Date and time functions in XPath 2.0
> 
> 
> Since I'm now facing the issue of making date and time 
> available to an 
> XPath 1.0 application, I thought I'd see what's coming in 2.0.  While 
> there's a large number of functions and operators defined, a 
> few quite 
> useful ones are missing:
> 
> Extraction of year, month, date, and day-of-week from date 
> and dateTime. 
>   You can extract the century or the hour, but nothing in between. 
> (Actually, get-Year, get-month, and get-day are mentioned in section 
> 14.5 [Casting to duration and date and time types], but are never 
> defined.   They're also inconsistent with the defined functions, as 
> being (e.g.) get-month rather than get-month-from-dateTime. 
> By the way, 
> is there a reason for the inconsistent capitalization?)
> 
> Likewise, there's no way to extract a numeric month or day from a 
> gMonthDay, etc.  (Again, these are mentioned in 14.5, again with 
> inconsistent names, and again only get-Year is capitalized.)
> 
> Thanks,
> Mike
> 
Received on Wednesday, 27 February 2002 12:07:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:05:54 GMT