I have a column _action_date which is bigint type.
The example data stored in it is:
1,530,402,820,197,192
I want to convert the date into timestamp without timezone format.
I tried to_timestamp() method but it is failing for bigint. I then divided it by 1000000 to eliminate the milliseconds part. But I am getting wrong date then.
Please help me in figuring out the issue.
I converted it using online epoch convertor and it is giving me this result.
GMT: Saturday, 30 June 2018 23:53:40
Your time zone: Sunday, 1 July 2018 05:23:40 GMT+05:30
I want the same result.
I am using Amazon Redshift