Created
June 5, 2024 22:33
-
-
Save greenygh0st/ee91d13f28e6c550bea31345a6200b9d to your computer and use it in GitHub Desktop.
Get the UTC date in Oracle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE FUNCTION SYSDATEUTC RETURN DATE AS | |
BEGIN | |
RETURN CAST(sys_extract_utc(SYSTIMESTAMP) AS DATE); | |
END SYSDATEUTC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment