GitHub user tzolkincz opened a pull request:

    https://github.com/apache/incubator-phoenix/pull/26

    add function timezone offset

    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: 
    ```SQL
    SELECT * FROM table 
    WHERE offset =  TIMEZONE_OFFSET('Indian/Cocos', TO_DATE('2014-02-01 
00:00:00'))
    ```
    Thanks

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tzolkincz/incubator-phoenix timezoneOffset

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-phoenix/pull/26.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #26
    
----
commit fa8b0f8483e4f4994b0b13dff626cb52d9acc4d0
Author: tzolkincz <[email protected]>
Date:   2014-04-02T16:19:35Z

    add function timezone offset

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to