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: Minutes Since Midnight 2000

RE: Minutes Since Midnight 2000

From: <Jared.Still_at_radisys.com>
Date: Fri, 17 Jan 2003 12:59:05 -0800
Message-ID: <F001.005337AC.20030117125905@fatcity.com>


any more, a system without perl is hardly a system at all.

it's kind of like a system without a shell.

Jared

"Post, Ethan" <Ethan.Post_at_ps.net>
Sent by: root_at_fatcity.com
 01/17/2003 11:50 AM
 Please respond to ORACLE-L  

        To:     Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
        cc: 
        Subject:        RE: Minutes Since Midnight 2000


Yeah that would work if I want to use the database but I try to write things
in such a way that I can use them in other places and share them with other
non-DBA types, thus the reason I am not using Perl or GNU date. Oracle-L has some very good *nix scripters so that is why I posted it here, I get faster better responses then many of the *nix lists. Thanks for suggestion.

-----Original Message-----
Sent: Friday, January 17, 2003 1:43 PM
To: ORACLE-L_at_fatcity.com
Cc: Ethan.Post_at_ps.net

Just idea, how about:

SQL> select 24*60*(sysdate - to_date('00-00-00-01-01-2000', 'SS-MI-HH24-DD-MM-YYYY') ) from dual;

24*60*(SYSDATE-TO_DATE('00-00-00-01-01-2000','SS-MI-HH24-DD-MM-YYYY'))


                                                            1602151.58

You can spool this result to a file and then use "cat | awk" to read the number back to your script.

HTH. Guang



Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

--

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

Author: Post, Ethan
  INET: Ethan.Post_at_ps.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).

--

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

Author:
  INET: Jared.Still_at_radisys.com

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 Jan 17 2003 - 14:59:05 CST

Original text of this message

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