[ 
https://issues.apache.org/jira/browse/JENA-508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15320441#comment-15320441
 ] 

ASF GitHub Bot commented on JENA-508:
-------------------------------------

Github user afs commented on the issue:

    https://github.com/apache/jena/pull/148
  
    It's a good thing it's summer where I am (British Summer Time)!
    
    My reading of https://www.w3.org/TR/xpath-functions-3/#timezone.functions 
is that conversions where there is no provided timezone use local time, 
including daylight savings time.
    
    In the tests `TimeZone.getDefault().getRawOffset()` returns the offset 
without regard for the local daylight savings time.
    
    Also allowing for timezones which are negative offsets, I came up with:
    ```
     private String getDynamicDurationString(){
            int tzOffset = TimeZone.getDefault().getOffset(new 
Date().getTime())/(1000*60) ; 
            String x = "PT"+Math.abs(tzOffset)+"M";
            if ( tzOffset < 0 )
                x = "-"+x ;
            return x ;
        }
    ```
    
    `XSDFuncOp.adjustDatetimeToTimezone` also needs this.


> Add support for XPath 3 Functions
> ---------------------------------
>
>                 Key: JENA-508
>                 URL: https://issues.apache.org/jira/browse/JENA-508
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: ARQ
>            Reporter: Rob Vesse
>            Assignee: Alessandro Seganti
>              Labels: gsoc, gsoc2015
>
> XPath 3 is now a Candidate Recommendation - 
> http://www.w3.org/TR/xpath-functions-30/
> It contains many new functions and operators (particularly in the 
> mathematical space) which we should consider adding into future versions of 
> ARQ.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to