Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

add minutes

Status
Not open for further replies.

specv

Programmer
Aug 8, 2001
42
CA
I work with oracle sqlplus. What i want is add minutes on a date field.
Is it possible?

Thanks
Phil
 
Absolutely:
SELECT old_date + desired_number_of_minutes/(24*60) new_date
FROM my_table;

It will be faster if you do the math up front to get
SELECT old_date + desired_number_of_minutes/1440 new_date
FROM my_table;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top