You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/05/16 15:44:24 UTC

[jira] [Commented] (PHOENIX-983) Add a function for getting the GMT offset for a given timezone and time

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

ASF GitHub Bot commented on PHOENIX-983:
----------------------------------------

Github user gabrielreid commented on the pull request:

    https://github.com/apache/incubator-phoenix/pull/26#issuecomment-43331422
  
    This has been logged in Jira (https://issues.apache.org/jira/browse/PHOENIX-983) and pulled in. 
    
    I don't have the rights to close this PR, could you do that @jtaylor-sfdc  or @tzolkincz ?


> Add a function for getting the GMT offset for a given timezone and time
> -----------------------------------------------------------------------
>
>                 Key: PHOENIX-983
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-983
>             Project: Phoenix
>          Issue Type: New Feature
>            Reporter: Gabriel Reid
>             Fix For: 5.0.0, 3.1, 4.1
>
>         Attachments: PHOENIX-983.patch
>
>
> Based on pull request: https://github.com/apache/incubator-phoenix/pull/26
> Function for get offset (shift) of timezone at particular datetime. Example use case: let's say you have stored some data in some offset and want to query like this:
> {code}
> SELECT * FROM table 
> WHERE offset =  TIMEZONE_OFFSET('Indian/Cocos', TO_DATE('2014-02-01 00:00:00'))
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)