Re: [CHALLANGE] Add seconds to a date
From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: 26 Feb 2002 08:57:05 -0800
Message-ID: <a5gep102h6n_at_drn.newsguy.com>
Date: 26 Feb 2002 08:57:05 -0800
Message-ID: <a5gep102h6n_at_drn.newsguy.com>
In article <3c1b889f.0202250828.772510aa_at_posting.google.com>, panjas51_at_yahoo.fr
says...
>
>I tried to make a PLSQL (oracle) function in order to add some seconds
>to a specified date:
>
>Let's take a exemple:
>New_date=sec2date(#2002-02-02#, 100),
>this should add 100 seconds to the entered date:
>this should then return "2002-02-02 00:01:40".
>
>Attention to the lead year.
>
>If any one wants to take this challage or propose some quick wins
>idees
select ANY_DATE + 1/24/60/60 * NUM_SECS from ....
-- Thomas Kyte (tkyte_at_us.oracle.com) http://asktom.oracle.com/ Expert one on one Oracle, programming techniques and solutions for Oracle. http://www.amazon.com/exec/obidos/ASIN/1861004826/ Opinions are mine and do not necessarily reflect those of Oracle CorpReceived on Tue Feb 26 2002 - 17:57:05 CET
