Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Extract Hours, Minutes & Seconds from TIMESTAMP

User_ZZQJ0Apr 29 2017 — edited Apr 29 2017

My requirement is that I have a text field (CHAR) that shows time values in the form HH:MM:SS. I would like extract the hours, minutes and seconds from the text field and convert them all to seconds. I have tried using INSTR, SUBSTRING & LOCATE but have not been able to come up with a solution.

Example Output - 02:00:00 will become 7200 seconds.

This post has been answered by Christian Berg-0racle on Apr 29 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details