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

Date number

Status
Not open for further replies.
Jul 19, 2003
132
0
0
NZ
My application stores datetime as the number of seconds since 01-JAN-70 12:00 in an Oracle database.

I'd like to be able to calculate the number of seconds between the time of the transaction and midnight on the day the transaction is done.

Does anyone know how to convert a datetime to the number of seconds since 01-JAN-70 12:00 in pl-sql?

Thanks.
 
perhaps you might want to ask this question in one of the oracle forums?

in the ANSI SQL forum, we don't usually deal with PL-SQL

r937.com | rudy.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top