RE: [ILUG] $yesterday

From: Stephen_Reilly at domain dell.com
Date: Tue 23 Oct 2001 - 18:09:18 IST


James,

try:

TZ=timezone+shift date
a. replace timezone with EST,CST,PST,etc
b. replace shift with 24-(shift from GMT)
c. Example
  1. EST=-5
  2. 24-(-5)=29
  3. TZ=EST+29 date
  
or:

echo `echo '*time-0t86400=Y' | /usr/bin/adb -k | tail -2`

steve

-----Original Message-----
From: Baldwin_James at domain emc.com [mailto:Baldwin_James at domain emc.com]
Sent: 23 October 2001 17:50
To: kenn at domain bluetree.ie; Baldwin_James at domain emc.com; ilug at domain linux.ie
Subject: RE: [ILUG] $yesterday

Thanks for showing me the GNU Carrot, but it dont help me in this case..I
know how naff the Sol date util is...! :P

Anyone know of a YESTERDAY binary hanging about either compiled or
compilable on Solaris ?
;)

-----Original Message-----
From: Kenn Humborg [mailto:kenn at domain bluetree.ie]
Sent: Tuesday, October 23, 2001 5:30 PM
To: Baldwin_James at domain emc.com; ilug at domain linux.ie
Subject: RE: [ILUG] $yesterday

> All,
>
> Without going OTT, can anyone think of a way of echoing out a $yesterday
> variable (i.e. yesterdays date! :P )?
> Has the date binary got some fancy footwork to do this already ? Running
> *cough* Solaris 2.6 :(

With GNU date:

$ date -d yesterday
Mon Oct 22 17:29:55 IST 2001
$

Later,
Kenn

-- 
Irish Linux Users' Group: ilug at domain linux.ie
http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
List maintainer: listmaster at domain linux.ie


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:52 GMT