Operating System - HP-UX
1752806 Members
5783 Online
108789 Solutions
New Discussion юеВ

Offset TZ variable more than 24

 
Mats Sj├╢blom
Occasional Contributor

Offset TZ variable more than 24

Hi!
I wan't to offset the TZ variable more than 168 hrs.
On an AIX I solve it like this:

# date
Fri Mar 16 14:46:33 MET 2001
# TZ=XXX168YYY
# date
Fri Mar 9 13:46:49 XXX 2001

Doing the same on HP-UX wan't solve it! :
# date
Fri Mar 16 15:13:49 MET 2001
# TZ=XXX168YYY
# date
Fri Mar 16 09:14:07 EST 2001

As you can see I only get the deafult TZ "EST". It happens every time I'm using a value above 24!

OK! Anyone know how to solve this problem!?

Regards // Mats Sj?blom, Stockholm, Sweden
4 REPLIES 4
Bill McNAMARA_1
Honored Contributor

Re: Offset TZ variable more than 24

I would call that a bug on AIX!
Seriously though, it's globally not possible!

The old run around the north pole to try to
reverse time trick!

Later,
Bill
It works for me (tm)
John Bolene
Honored Contributor

Re: Offset TZ variable more than 24

I agree, timezones run from 0 to 23.

What you can do is write your own script to do this very easily.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Mats Sj├╢blom
Occasional Contributor

Re: Offset TZ variable more than 24

Of course I know there's only 24hr/day :-( That was not my Q! I know my english is not perfect ... but is it that bad?

Bugg or not in AIX .... it's very useful for my purpose, so please, if anyone skilled person got a serious sugestion, please reply!

//mats
Bill McNAMARA_1
Honored Contributor