I'm trying to write a query to return the current abbreviated timezone for a given area. Such as...
'America/New_York' 'America/Los_Angeles'
I'd want these to be converted into...
'EDT' 'PDT'
I can do it using Local time zone
select TO_CHAR(CAST(SYSDATE AS TIMESTAMP WITH LOCAL TIME ZONE),'TZD') from dual;
Which returns 'PDT'. But I need it to return the timezone for any area. Hoping for something like...
select TO_CHAR(CAST(SYSDATE AS TIMESTAMP AT TIME ZONE 'America/Los_Angeles'),'TZD') from dual;
But Oracle doesn't like that Syntax. Any idea how to get it?