[rescue] Timezone

Ken Hansen rescue at sunhelp.org
Tue Dec 25 15:11:20 CST 2001


Can you really have a TZ > 12 or < -12?

TZ is relative UTC, and there is the International Date Line out in the 
Pacific...

Ken

On Tuesday, December 25, 2001, at 02:45 PM, <ed at the7thbeer.com> wrote:

> Question --
>
> In bourne shell, 'tis written that one may do:
>
> $ TZ="TZ+24"
> $ export TZ
> $ date
>  and the output of date will be the previous day.  My output is the day
> before + 8 hours.  I presume this is because my TZ is Pacific.  But 
> adding
> 24 + 8 for "TZ+32" yields today + 3 hours.  *headscratch*  Maybe I had 
> too
> much eggnog last night...
>
> First, anyone know the best way to get the previous day(and the day
> before) out of a shell construct and second, why do you add 24 hours to
> the timezone to get the *previous* day?  My guess is that since 
> timezones
> increment towards the east, that subtracting, as in PST = GMT - 8hrs,
> would get you to midnight of the same day and then back over  the
> international date line, which would be the following day.  Is this even
> close?
>
> Ah, the little puzzles my wife gives me for Christmas.  :)
>
> ed
> _______________________________________________
> rescue maillist  -  rescue at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/rescue
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




More information about the rescue mailing list