axl747
asked on
Time conversion in Oracle PL/SQL
I am writing a package to process data into a schema and a requirement to store a timestamp as "no of seconds since 01/01/1970 UCT time" has surfaced.
I am not aware of any packaged procedure etc in Oracle which does this conversion. Will I have to do this calc manually or is there a nicer way???
I am not aware of any packaged procedure etc in Oracle which does this conversion. Will I have to do this calc manually or is there a nicer way???
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Split between catchmeifuwant and bmoshier.
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Henka
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
Split between catchmeifuwant and bmoshier.
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Henka
EE Cleanup Volunteer
ASKER
Thanks for the suggestions - I guess the answer to my initial question is 'no nicer way' at least not in 8i!!
We already had a solution using unix scripts so we have left it at that.
We already had a solution using unix scripts so we have left it at that.
Actually the assisted answer should replace the accepted answer as it comes closer to solving the original problem. The accepted answer does nothing to account for the UTC offset problem. The assisted answer doesn't actually solve it, but at least it offers several avenues of exploration on the issue.
ASKER