RE: Date and time functions in XPath 2.0

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 UTC