W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > October to December 2010

Re: Details of dateTime operations

From: Steve Harris <steve.harris@garlik.com>
Date: Wed, 29 Dec 2010 10:07:20 +0000
Cc: SPARQL Working Group <public-rdf-dawg@w3.org>
Message-Id: <77FC7641-66F5-4D26-BE41-86904A8CB557@garlik.com>
To: Andy Seaborne <andy.seaborne@epimorphics.com>
On 2010-12-27, at 19:16, Andy Seaborne wrote:
> 
> On 03/12/10 14:12, Andy Seaborne wrote:
>> 
>> TIMEZONE is a bit different.  In F&O it returns an xs:dayTimeDuration.
>> There are operations like fn:timezone-from-dateTime for each of
>> dateTime, date and time. See also casting rules [1].
> 
> FYI:
> 
> xs:dayTimeDuration isn't very convenient for display purposes. I've added TZ() to ARQ, not included in it's default SPARQL 1.1 parser, which returns the timezone as a string as it appears in the lexical form. TZ(no timezone given) is "".

That sounds like a better fit to common usecases to me.

- Steve

-- 
Steve Harris, CTO, Garlik Limited
1-3 Halford Road, Richmond, TW10 6AW, UK
+44 20 8439 8203  http://www.garlik.com/
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10 9AD
Received on Wednesday, 29 December 2010 10:08:00 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:44 GMT