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: Yesterday's date - unix question

RE: Yesterday's date - unix question

From: Nicoll, Iain (Calanais) <iain.nicoll_at_calanais.com>
Date: Mon, 15 Jul 2002 02:53:23 -0800
Message-ID: <F001.00497B80.20020715025323@fatcity.com>


Vladimir,

Found this on the net (can't recall where though) for touching a file with yesterdays date.

touch `TZ=GB+24 date +%m%d%H%M%y` filename

You'd need to change the GB to what is appropiate for you and change the format variables to the format you wish

eg

echo `TZ=GB+24 date +%y%m%d` to get 020714 yymmdd

HTH Iain Nicoll

-----Original Message-----
Sent: Monday, July 15, 2002 10:48 AM
To: Multiple recipients of list ORACLE-L

Good morning / afternoon / evening...

How to find yesterday's date in unix? Yes, I know how to find it by using env. variables, sql*plus, redirecting output and so on... But I need pure unix solution.

Thanks,
Vladimir Barac

--

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

Author: Vladimir Barac - posao
  INET: vladob_at_aster.si

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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.com
--

Author: Nicoll, Iain (Calanais)
  INET: iain.nicoll_at_calanais.com
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Mon Jul 15 2002 - 05:53:23 CDT

Original text of this message

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