-
Is there a way to find out the universal date/time directly from Oracle based on the local date/time? I know Visual C++ has some functions for this, but I need to use it in Oracle directly.
Thank you
-
So, you give it the local time and the database returns GMT?
-
-
Your server's time zone is a known value (+/- x hours GMT).
I suppose you could hard code the GMT offset .. and ..
select to_char(sysdate,'HH24')+/-(HardCodedOffset) from dual returns current hour (and do a case for the hours around midnight) That's ugly.
Am I barking up the right tree here?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|