Changing timezones

Hi
I have a QNX4.24 box which I had set up to EST when I installed the OS on it.
Now I need to ship it to a place which is on a different timezone (Atlantic
Time) and so I need to change the timezone. I understand that I need to tweak
the TZ variable in the sysinit.* file. But my problem is that I can’t seem to
find any documentation on the syntax of setting up the variable. The QNX4
Installation and Configuration manual just alludes to it and directs me to
look at a file called ‘timezone’ in the technotes of QUICS. I got on to
QUICS but couldn’t manage to get to any file called timezone! It would be
great if someone could direct me to some resource. BTW the RTC is set to local
time.

Thanks,
Santosh Patil
GE Harris Harmon,
Melbourne, FL, USA.

Santosh Patil <sanspatil@hotmail.com> wrote:
: Hi
: I have a QNX4.24 box which I had set up to EST when I installed the OS on it.
: Now I need to ship it to a place which is on a different timezone (Atlantic
: Time) and so I need to change the timezone. I understand that I need to tweak
: the TZ variable in the sysinit.* file. But my problem is that I can’t seem to
: find any documentation on the syntax of setting up the variable. The QNX4
: Installation and Configuration manual just alludes to it and directs me to
: look at a file called ‘timezone’ in the technotes of QUICS. I got on to
: QUICS but couldn’t manage to get to any file called timezone! It would be
: great if someone could direct me to some resource. BTW the RTC is set to local
: time.

It’s described in the Global Data and the TZ Environment Variable chapter
of the Watcom C Library reference.


Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems

Steve Reid wrote:

Santosh Patil <> sanspatil@hotmail.com> > wrote:
: I have a QNX4.24 box which I had set up to EST when I installed the OS on it.
: Now I need to ship it to a place which is on a different timezone (Atlantic
: Time) and so I need to change the timezone. I understand that I need to tweak
: the TZ variable in the sysinit.* file. But my problem is that I can’t seem to
: find any documentation on the syntax of setting up the variable. The QNX4
: Installation and Configuration manual just alludes to it and directs me to
: look at a file called ‘timezone’ in the technotes of QUICS. I got on to
: QUICS but couldn’t manage to get to any file called timezone! It would be
: great if someone could direct me to some resource.
It’s described in the Global Data and the TZ Environment Variable chapter
of the Watcom C Library reference.

If you just want the TZ string, try “AST4ADT”. You could also express
it
explicitly as “AST4ADT3,M4.1.0,M10.5.0”, but these are the default
dates.

: BTW the RTC is set to local time.

This is (usually) a mistake. If you want to take advantage of automatic
daylight-savings changes and maintain a monotonically increasing time,
then you should run your OS clock in UTC and let TZ do the work for you

In article <3AA656F0.F7EDC893@cisco.com>, John Garvey <jpg@cisco.com> wrote:

Steve Reid wrote:
Santosh Patil <> sanspatil@hotmail.com> > wrote:
: I have a QNX4.24 box which I had set up to EST when I installed the OS on
it.
: Now I need to ship it to a place which is on a different timezone (Atlantic
: Time) and so I need to change the timezone. I understand that I need to
tweak
: the TZ variable in the sysinit.* file. But my problem is that I can’t seem
to
: find any documentation on the syntax of setting up the variable. The QNX4
: Installation and Configuration manual just alludes to it and directs me to
: look at a file called ‘timezone’ in the technotes of QUICS. I got on to
: QUICS but couldn’t manage to get to any file called timezone! It would be
: great if someone could direct me to some resource.
It’s described in the Global Data and the TZ Environment Variable chapter
of the Watcom C Library reference.

If you just want the TZ string, try “AST4ADT”. You could also express
it
explicitly as “AST4ADT3,M4.1.0,M10.5.0”, but these are the default
dates.

: BTW the RTC is set to local time.

This is (usually) a mistake. If you want to take advantage of automatic
daylight-savings changes and maintain a monotonically increasing time,
then you should run your OS clock in UTC and let TZ do the work for you

Thanks guys. As far as setting the RTC to local time is concerned, there is
a Windoze os too on another partition so I guess I don’t have much of a
choice.