Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: time/date granularity

RE: time/date granularity

From: Josh Collier <Josh.Collier_at_Banfield.net>
Date: Fri, 22 Aug 2003 09:44:27 -0800
Message-ID: <F001.005CC45F.20030822094427@fatcity.com>


The issue at hand is this:  

There is a column, setup_date that is populated by a trigger with sysdate after insert. Now the developers want to know if there is a way they can get the time of this date to a granularity of 10ths or 100ths of a second.  

If I insert sysdate, can I then extract the centisecond or decisecond of that date/time?  

Make sense?  

Thanks  

-----Original Message-----
Sent: Friday, August 22, 2003 10:30 AM
To: Multiple recipients of list ORACLE-L

if you are pre 9i you can get up to 100th of a second using dbms_utility.get_time().

in post 9i, you can use systimestamp which will give you a microsecond if you wish.

Raj




Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are strictly personal. QOTD: Any clod can have facts, having an opinion is an art !

-----Original Message-----
<mailto:Josh.Collier_at_Banfield.net> ]
Sent: Friday, August 22, 2003 1:20 PM
To: Multiple recipients of list ORACLE-L

Hi,

Is there a way for me to get the time of a particular sysdate past the granularity of one second?

Thanks!

Josh
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net <http://www.orafaq.net>
--

Author: Josh Collier
  INET: Josh.Collier_at_Banfield.net

Fat City Network Services -- 858-538-5051 http://www.fatcity.com <http://www.fatcity.com>
San Diego, California -- Mailing list and web hosting services



To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Josh Collier
  INET: Josh.Collier_at_Banfield.net

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Aug 22 2003 - 12:44:27 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US