How to convert epoch time to human readable in teradata?

Member

by addison , in category: MySQL , 6 months ago

How to convert epoch time to human readable in teradata?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by ryleigh , 6 months ago

@addison 

In Teradata, you can convert epoch time to human readable format using the following SQL query:

1
2
3
4
SELECT 
  TIMESTAMP '1970-01-01 00:00:00' + (YourEpochTimeInSeconds * INTERVAL '1' SECOND)
FROM 
  YourTable;


Replace YourEpochTimeInSeconds with the epoch time you want to convert and YourTable with the table where the epoch time is stored. This query will return the epoch time in human readable format.

Related Threads:

How to convert the moment.js time to local time?
How to convert varchar2 to time in oracle?
How to convert time format in codeigniter?
How to convert a time to milliseconds using php?
How to convert sysdate to utc time in oracle?
How to convert a teradata table to utf8?