Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Get # of seconds between 2 dates
eg,
SQL> l
1 select
2 60*60*24 "seconds_in_day" /* 86400 */
3 ,
4 ( 5 to_date('30-OCT-2000 12:00:01','DD-MON-YYYY HH:MI:SS') - 6 to_date('29-OCT-2000 12:00:01','DD-MON-YYYY HH:MI:SS') 7 ) 8 * 9 (60*60*24) "DIFF"
86400 86400
On 30 Oct 2000, at 13:22, Jamadagni, Rajendra wrote:
> no_of_secs = (date2-date1)*86400
Received on Mon Oct 30 2000 - 16:07:21 CST
![]() |
![]() |