Re: tomorrows date

From: Renison, Rick (rick.renison@EDS.COM)
Date: Tue Dec 09 2003 - 22:13:25 EST


It doesn't always give yestday's date.
eg. TZ=XXX-24 gives tomorrow's (not yesterday) date/time if you are in
England.
If you want your own time zone, replace the [-][0-9]* with the value +24
hours (yes, a "+" value)
eg. if EST5EDT, use TZ=xxx29
eg. if JST-9, use TZ=xxx15

If you want daylight savings time, append the 'dst' info to the TZ variable.
(see man environment)

...Rick

> -----Original Message-----
> From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU]On Behalf Of
> Shawn Bierman
> Sent: December 9, 2003 4:06 PM
> To: aix-l@Princeton.EDU
> Subject: tomorrows date
>
>
> Is a statement like this always going to be correct?
>
> ksh TZ=SCG-24 date +%m%d%y
>
>
> Does it allow for leap years, time zone changes etc...?
>
> I just want it to give tomorrows date.
>
> -shawn
>



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