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 emc.com [mailto:Baldwin_James at emc.com]
Sent: 23 October 2001 17:50
To: kenn at bluetree.ie; Baldwin_James at emc.com; ilug at 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 bluetree.ie]
Sent: Tuesday, October 23, 2001 5:30 PM
To: Baldwin_James at emc.com; ilug at 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 linux.iehttp://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
List maintainer: listmaster at linux.ie
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!