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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difference between two oracle date fields in seconds

Status
Not open for further replies.

Palmero

Technical User
Mar 31, 2001
53
FR
Hi all,
I want to know how to make the difference between two oracle date fields in seconds.

Thanks in advance for your answer.

Palmero.
 
there are 86400 seconds in a day so trunc((field 2 - field1)* 86400) ought to do it, I use 86399/86400 quite a lot, myself The one thing you can't give for your heart's desire is your heart. - Lois McMaster Bujold
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top