Skip to Main Content

Oracle Database Discussions

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!

Add days and minutes in fractional format to a timestamp

MoonlightJun 4 2020 — edited Jun 4 2020

Hello,

I need to add to a timestamp a number of days and minutes in fractional format  :

select to_timestamp('30/12/1899 12:00:00','dd/mm/yyyy HH24:MI:SS:FF') + 40390.28033320 from dual;

40390 is the number of days

0.28033320 represent the minutes and seconds

I only have the number of days added but not the minutes and seconds,  how do I get the minutes and seconds right?

Best regards

This post has been answered by Gaz in Oz on Jun 4 2020
Jump to Answer
Comments
Post Details
Added on Jun 4 2020
4 comments
1,952 views