Skip to content
Advertisement

Today in Oracle Unix date

I have a field which stores the date in a Unix timestamp.

Instead of having to translate the test ie

I want to just say

But have that as a Unix Timestamp.

Any help appreciated.

Advertisement

Answer

Unix time is in the UTC time zone; do not naively use SYSDATE as it may be in the wrong time zone. Use SYSTIMESTAMP and convert it to UTC:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement