I am trying to convert a timestamp to interval & expecting an out of hh:mm only.
My code is like below
SELECT to_timestamp('2020-01-10 08:00', 'YYYY-MM-DD hh24:mi')::timestamp without time zone
at time zone 'Asia/Calcutta'
at time zone 'Etc/UTC'
Actual purpose of the code is change the time zone into utc for a given date time value.
SELECT TIMESTAMP '2020-01-13 10:00:00' AT TIME ZONE 'Asia/Calcutta' AT TIME ZONE 'UTC';