Created
May 28, 2018 16:57
-
-
Save s-oravec/66360ffe327c7aa8c954d44fc839605a to your computer and use it in GitHub Desktop.
GMT vs. CET TimeZone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- GMT vs. CET | |
| with dates as | |
| (select from_tz(cast(trunc(sysdate, 'YYYY') + level as timestamp), 'GMT') as gmt from dual connect by level <= 365), | |
| tzs as | |
| (select gmt, gmt at time zone 'CET' as cet from dates) | |
| select to_date(to_char(gmt, 'YYYY-MM-DD HH24:MI:SS'), 'YYYY-MM-DD HH24:MI:SS') as gmt, | |
| to_date(to_char(cet, 'YYYY-MM-DD HH24:MI:SS'), 'YYYY-MM-DD HH24:MI:SS') as cet | |
| from tzs; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment