Skip to Main Content

SQL & PL/SQL

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!

a given date + 1 hour

789736Aug 1 2012 — edited Aug 1 2012
Hi guys,

I have a quick question for ya that I am hoping is not to hard. I currently have a date time field and basically all I want to do is add 1 hour to this field and was wondering if its as simple as doing + 0.041666.

ie , if i select sysdate + 0.041666 from dual that gives me exactly 1 hour from the current datetime, but I was wondering is there a more accurate way to do this or a different method to do this to ensure it is correct? as 1/24 is actually 0.0416666666666666666667 or whatever I am just curious as to if my method is the correct way to do this.

Thanks.
This post has been answered by EdStevens on Aug 1 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 29 2012
Added on Aug 1 2012
7 comments
656 views