Created 08-07-2017 08:58 PM
Hello experts;
I have this query is getting PST time in Hive but how can I convert this PST time to UTC time? Please help
select from_unixtime(unix_timestamp()-1*60*60*4, 'yyyyMMddHH') as pst_time;
Thanks in advance
JN
Created 08-09-2017 12:06 AM
hi @JT Ng
Hive supports functions to_utc_timestamp() and from_utc_timestamp() to make this easier. Please see the language manual here for these functions including examples of how to invoke them.
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF
Created 08-09-2017 12:06 AM
hi @JT Ng
Hive supports functions to_utc_timestamp() and from_utc_timestamp() to make this easier. Please see the language manual here for these functions including examples of how to invoke them.
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF
Created 08-09-2017 01:38 PM
hi Sahi,
Thanks for your posts. I am able to use to_utc_timestamp() and from_utc_timestamp() functions.
Thanks