Probably a classic... Would you know a easy trick to retrieve an UTC value of SYSDATE on Oracle (best would be getting something working on the 8th version as well).
For now I've custom function :(
Cheers,
Stefan
Probably a classic... Would you know a easy trick to retrieve an UTC value of SYSDATE on Oracle (best would be getting something working on the 8th version as well).
For now I've custom function :(
Cheers,
Stefan
If you want a timestamp instead of just a date with sysdate, you can specify a timezone using systimestamp:
outputs:
29-AUG-17 06.51.14.781998000 PM UTC
I'm using:
It's working fine for me.
Won't work on Oracle 8, though.
You can use
You may also need to change your timezone
Or read it
Usually, I work with DATE columns, not the larger but more precise TIMESTAMP.
The following will return the current UTC date as just that -- a DATE.
Working with UTC dates is great because I don't have to worry about the complexity of time zones. Only the final display to the user needs offsets or other trouble.