How does the QNX know what kind of time the hardware clock i

The WinME and QNX had the clock conflict problem on my system.After careful
examination,I found that is because the WinMe always assumes that the
hardware time is the local time and the QNX assumes it is the UTC/GMT
one.So,after deselecting the "The hardware clock uses UTC/GMT "in phlocal
and apply the change to RTC,everything is ok.My problem is:how does the QNX
know whether the hardware is using the UTC/GMT time or not?It is must not be
the job of the TZ,the TZ env is just used to form the right local time or to
caculate the right UTC clocks.

Thanks

ChaoLi

QNX doesn’t know if the h/w clock is UTC or local. It’s just an
assumption. That’s why you have to select or deselect this option in the
control panel.

–bl


ChaoLi wrote:

The WinME and QNX had the clock conflict problem on my system.After
careful
examination,I found that is because the WinMe always assumes that the
hardware time is the local time and the QNX assumes it is the UTC/GMT
one.So,after deselecting the "The hardware clock uses UTC/GMT "in
phlocal
and apply the change to RTC,everything is ok.My problem is:how does
the QNX
know whether the hardware is using the UTC/GMT time or not?It is must
not be
the job of the TZ,the TZ env is just used to form the right local time
or to
caculate the right UTC clocks.

ChaoLi <ChaoLi@sohu.com> wrote:

The WinME and QNX had the clock conflict problem on my system.After careful
examination,I found that is because the WinMe always assumes that the
hardware time is the local time and the QNX assumes it is the UTC/GMT
one.So,after deselecting the "The hardware clock uses UTC/GMT "in phlocal
and apply the change to RTC,everything is ok.My problem is:how does the QNX
know whether the hardware is using the UTC/GMT time or not?It is must not be
the job of the TZ,the TZ env is just used to form the right local time or to
caculate the right UTC clocks.

In QNX 4 there is a utility “rtc” (see “use rtc”), which can be used to
tell system, which time (UTC or local) is used by hardware clock. We start
the utility at the system start (from sysinit script). I hope there is some
command-line counterpart in QNX 6.

Martin


Thanks

ChaoLi

<matog@microstep-mis.sk> wrote in message
news:aalb8m$urr$1@charon.microstep-mis.sk

ChaoLi <> ChaoLi@sohu.com> > wrote:
The WinME and QNX had the clock conflict problem on my system.After
careful
examination,I found that is because the WinMe always assumes that the
hardware time is the local time and the QNX assumes it is the UTC/GMT
one.So,after deselecting the "The hardware clock uses UTC/GMT "in
phlocal
and apply the change to RTC,everything is ok.My problem is:how does the
QNX
know whether the hardware is using the UTC/GMT time or not?It is must
not be
the job of the TZ,the TZ env is just used to form the right local time
or to
caculate the right UTC clocks.

In QNX 4 there is a utility “rtc” (see “use rtc”), which can be used to
tell system, which time (UTC or local) is used by hardware clock. We start
the utility at the system start (from sysinit script). I hope there is
some
command-line counterpart in QNX 6.

Yes there is. It’s called ‘rtc’. See how we provide a smooth transition
from QNX4 to QNX6?

:wink:

Kris

Martin


Thanks

ChaoLi