Re: Where to find gnu date binary !!!! Urgent Please !!!!

From: Don Manley (Donald.J.Manley@JPMCHASE.COM)
Date: Tue Aug 20 2002 - 15:42:05 EDT


I can help with yesterday's date...

These lines, in a script, will give you yesterday's date. I assume you'd
want to make them a function in a script.

save_TZ=$TZ
TZ=`date +%Z+24`
export TZ
yesterday=`date +%d%m%Y`
echo $yesterday
TZ=$save_TZ
export TZ

Function in a script:
#####################
YESTERDAY ()
#####################
{
save_TZ=$TZ
TZ=`date +%Z+24`
export TZ
yesterday=`date +%d%m%Y`
echo $yesterday
TZ=$save_TZ
export TZ
}
YESTERDAY

"B.N.Sarma" <bsarma@BASIT.COM>@Princeton.EDU> on 08/20/2002 11:43:47 AM

Please respond to IBM AIX Discussion List <aix-l@Princeton.EDU>

Sent by: IBM AIX Discussion List <aix-l@Princeton.EDU>

To: aix-l@Princeton.EDU
cc:
Subject: Where to find gnu date binary !!!! Urgent Please !!!!

Greetings,

IBM RS6000 AIX 4.3.3

1. I need to get Yesterday's date, I tried
(TZ=EST5+30; date) gives me Mon Aug 19 09:07:35 2002
where as the date is Tue Aug 20 11:07:38 EDT 2002, time is 2 hours
behind.
How to get the actual time based upon DST. We are in NY.

2. I need the gnu date binary for the AI X 4.3.3 version. I couldn't
find the binary in the bull site.

I don't have a compiler so I am looking for the binary.

Regards & Thanks
BN



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:09 EDT