Note: Epoch, unix Timestamp to date, SQL, converter

https://www.epochconverter.com/

Note if the epoch is 13 digits, you need to divide it with 1000, if it’s 10 digits epoch you don’t need to divide it with 1000

(TIMESTAMP '1970-01-01 00:00:00' AT TIME ZONE 'UTC' +     
    numtodsinterval(1204104116656/1000,'second')) AT time zone tz_offset('PST');

or just GMT with..

select (TIMESTAMP '1970-01-01 00:00:00' +     
    numtodsinterval(1204104116656/1000,'second')) from dual;

If you want to add the time zone, for example GMT+7, just add (7/24) and so on…

select (TIMESTAMP '1970-01-01 00:00:00' +   (7/24)  
    numtodsinterval(1204104116656/1000,'second')) from dual;
Iklan

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s