Return-Path: <ml-errors@fatcity.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id h7MJEK901079
 for <oracle-l@orafaq.net>; Fri, 22 Aug 2003 14:14:20 -0500
X-ClientAddr: 66.27.56.212
Received: from www3.fatcity.com (rrcs-west-66-27-56-212.biz.rr.com [66.27.56.212])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id h7MJE9p01064
 for <oracle-l@orafaq.net>; Fri, 22 Aug 2003 14:14:17 -0500
Received: (from root@localhost)
 by www3.fatcity.com (8.11.6/8.11.6) id h7MGjVQ32438
 for oracle-l@orafaq.net; Fri, 22 Aug 2003 09:45:31 -0700
Received: by fatcity.com (05-Jun-2003/v1.0g-b73/bab) via fatcity.com id 005CC45F; Fri, 22 Aug 2003 09:44:27 -0800
Message-ID: <F001.005CC45F.20030822094427@fatcity.com>
Date: Fri, 22 Aug 2003 09:44:27 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: Josh Collier <Josh.Collier@Banfield.net>
Sender: ml-errors@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: Josh Collier <Josh.Collier@Banfield.net>
Subject: RE: time/date granularity
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 73; ListGuru (c) 1996-2003 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: multipart/alternative;	boundary="----_=_NextPart_001_01C368CB.F8AB46D0"
------_=_NextPart_001_01C368CB.F8AB46D0
Content-Type: text/plain;
 charset="iso-8859-1"

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@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@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@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). 


------_=_NextPart_001_01C368CB.F8AB46D0
Content-Type: text/html;
 charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: time/date granularity</TITLE>

<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=527253716-22082003><FONT face=Arial color=#0000ff size=2>The 
issue at hand is this:</FONT></SPAN></DIV>
<DIV><SPAN class=527253716-22082003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=527253716-22082003><FONT face=Arial color=#0000ff size=2>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. 
</FONT></SPAN></DIV>
<DIV><SPAN class=527253716-22082003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=527253716-22082003><FONT face=Arial color=#0000ff size=2>If I 
insert sysdate, can I then extract the centisecond or decisecond of that 
date/time?</FONT></SPAN></DIV>
<DIV><SPAN class=527253716-22082003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=527253716-22082003><FONT face=Arial color=#0000ff size=2>Make 
sense?</FONT></SPAN></DIV>
<DIV><SPAN class=527253716-22082003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=527253716-22082003><FONT face=Arial color=#0000ff 
size=2>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=527253716-22082003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
size=2>-----Original Message-----<BR><B>From:</B> Jamadagni, Rajendra 
[mailto:Rajendra.Jamadagni@espn.com]<BR><B>Sent:</B> Friday, August 22, 2003 
10:30 AM<BR><B>To:</B> Multiple recipients of list ORACLE-L<BR><B>Subject:</B> 
RE: time/date granularity<BR><BR></FONT></DIV>
<P><FONT size=2>if you are pre 9i you can get up to 100th of a second using 
dbms_utility.get_time().</FONT> </P>
<P><FONT size=2>in post 9i, you can use systimestamp which will give you a 
microsecond if you wish.</FONT> </P>
<P><FONT size=2>Raj</FONT> <BR><FONT 
size=2>--------------------------------------------------------------------------------</FONT> 
<BR><FONT size=2>Rajendra dot Jamadagni at nospamespn dot com</FONT> <BR><FONT 
size=2>All Views expressed in this email are strictly personal.</FONT> <BR><FONT 
size=2>QOTD: Any clod can have facts, having an opinion is an art !</FONT> 
</P><BR>
<P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From: Josh 
Collier [<A 
href="mailto:Josh.Collier@Banfield.net">mailto:Josh.Collier@Banfield.net</A>]</FONT> 
<BR><FONT size=2>Sent: Friday, August 22, 2003 1:20 PM</FONT> <BR><FONT 
size=2>To: Multiple recipients of list ORACLE-L</FONT> <BR><FONT size=2>Subject: 
time/date granularity</FONT> </P><BR>
<P><FONT size=2>Hi,</FONT> </P>
<P><FONT size=2>Is there a way for me to get the time of a particular sysdate 
past the</FONT> <BR><FONT size=2>granularity of one second?</FONT> </P>
<P><FONT size=2>Thanks!</FONT> </P>
<P><FONT size=2>Josh</FONT> <BR><FONT size=2>-- </FONT><BR><FONT size=2>Please 
see the official ORACLE-L FAQ: <A href="http://www.orafaq.net" 
target=_blank>http://www.orafaq.net</A></FONT> <BR><FONT size=2>-- 
</FONT><BR><FONT size=2>Author: Josh Collier</FONT> <BR><FONT size=2>&nbsp; 
INET: Josh.Collier@Banfield.net</FONT> </P>
<P><FONT size=2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- 858-538-5051 <A 
href="http://www.fatcity.com" target=_blank>http://www.fatcity.com</A></FONT> 
<BR><FONT size=2>San Diego, California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
-- Mailing list and web hosting services</FONT> <BR><FONT 
size=2>---------------------------------------------------------------------</FONT> 
<BR><FONT size=2>To REMOVE yourself from this mailing list, send an E-Mail 
message</FONT> <BR><FONT size=2>to: ListGuru@fatcity.com (note EXACT spelling of 
'ListGuru') and in</FONT> <BR><FONT size=2>the message BODY, include a line 
containing: UNSUB ORACLE-L</FONT> <BR><FONT size=2>(or the name of mailing list 
you want to be removed from).&nbsp; You may</FONT> <BR><FONT size=2>also send 
the HELP command for other information (like subscribing).</FONT> 
</P></BODY></HTML>

------_=_NextPart_001_01C368CB.F8AB46D0--
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Josh Collier
  INET: Josh.Collier@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@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).

