From oracle-l-bounce@freelists.org Tue Mar 29 14:31:49 2005 Return-Path: Received: from air891.startdedicated.com (root@localhost) by orafaq.com (8.12.10/8.12.10) with ESMTP id j2TKVn2O001261 for ; Tue, 29 Mar 2005 14:31:49 -0600 X-ClientAddr: 206.53.239.180 Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180]) by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j2TKVmem001257 for ; Tue, 29 Mar 2005 14:31:48 -0600 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 609018A691; Tue, 29 Mar 2005 14:29:51 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00621-05; Tue, 29 Mar 2005 14:29:51 -0500 (EST) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D75428A64E; Tue, 29 Mar 2005 14:29:50 -0500 (EST) Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 content-class: urn:content-classes:message MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: RE: date minus one Date: Tue, 29 Mar 2005 12:29:38 -0700 Message-ID: <17CAB0BF27BCFC47B0E4554A0E2F962B562A86@fiji.arraybp.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: date minus one Thread-Index: AcU0kTEeffZIQ0xhSReNgdPh0MMSzwAAidgA From: "Reidy, Ron" To: , "oracle-l" X-OriginalArrivalTime: 29 Mar 2005 19:26:28.0984 (UTC) FILETIME=[34C22F80:01C53495] X-archive-position: 17800 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-To: oracle-l-bounce@freelists.org X-original-sender: Ron.Reidy@arraybiopharma.com Precedence: normal Reply-To: Ron.Reidy@arraybiopharma.com X-list: oracle-l X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on air891.startdedicated.com X-Spam-Status: No, hits=0.1 required=5.0 tests=AWL autolearn=ham version=2.60 X-Spam-Level: perl -MDate::Calc -e '@yesterday =3D Date::Calc::Add_Delta_Days(1, 1, 1, = (Date::Calc::Date_to_Days(Date::Calc::Today()) - 1) -1); print = @yesterday, "\n";' prints:=20 20050328 ----------------- Ron Reidy Lead DBA Array BioPharma, Inc. -----Original Message----- From: oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org]On Behalf Of Knight, Jon Sent: Tuesday, March 29, 2005 11:55 AM To: oracle-l Subject: date minus one Just curious how the rest of the world gets "yesterday" in UNIX. = We're running Solaris and we execute a sqlplus script with "select sysdate-1 = from dual;" and pipe it to tail to set an environment variable. Is there a more UNIXy way, -or- maybe a java function. Any = suggestions welcome. TIA, Jon Knight -- http://www.freelists.org/webpage/oracle-l This electronic message transmission is a PRIVATE communication which = contains information which may be confidential or privileged. The information is = intended=20 to be for the use of the individual or entity named above. If you are = not the=20 intended recipient, please be aware that any disclosure, copying, = distribution=20 or use of the contents of this information is prohibited. Please notify = the sender of the delivery error by replying to this message, or notify us = by telephone (877-633-2436, ext. 0), and then delete it from your system. -- http://www.freelists.org/webpage/oracle-l