datetime-difference

Hi,
 
</chair-hat>


just as I was stumbling over it something for the wish-list... 

We need datetime-difference for some use case.
Was that ever considered in previous discussions in the functions-library?
I am looking at the XPath arithmetics delegation in Table "SPARQL Binary Operators" in Section 17.3 of the query doc, cf. www.w3.org/TR/sparql11-query/


It's probably too much of a burden to add it now, but "nice-to have" for my use case would be

1) delegating "-"
to 
 
  op:subtract-dateTimes ( http://www.w3.org/TR/xpath-functions/#func-subtract-dateTimes )

For 
 
   xsd:dateTime - xsd:dateTime 


2) delegating "+"

 to 

 op:add-dayTimeDuration-to-dateTime

for either  

  xsd:dateTime + xsd:dayTimeDuration
 or 
  xsd:dayTimeDuration + xsd:dateTime
 

Best,
Axel


 
-- 
Dr. Axel Polleres 
Siemens AG Österreich 
Corporate Technology Central Eastern Europe Research & Technologies 
CT T CEE 
 
Tel.: +43 (0) 51707-36983 
Mobile: +43 (0) 664 88550859
Fax: +43 (0) 51707-56682 mailto:axel.polleres@siemens.com 

Received on Thursday, 12 April 2012 09:50:38 UTC