On Monday 17 May 2004 15:42, InfoHelp wrote:
> True, but not 40
>
> Nick Rout wrote:
> >On Mon, 17 May 2004 15:39:00 +1200
> >
> >InfoHelp <[EMAIL PROTECTED]> wrote:
> >>>what makes u think suse has a problem?
> >>
> >>Every time I start it up, the clock is out.
> >>Tried a few settings, no change.
> >>Currently on Time Zone: Global - NZ which is reducing errors from hours
> >>to minutes.
> >
> >how much is it out by? its likely to be out by a minute or two.

You can set the hardware clock in your 'puter by running the hwclock utility:-
hwclock --help
hwclock - query and set the hardware clock (RTC)

Usage: hwclock [function] [options...]

Functions:
  --help        show this help
  --show        read hardware clock and print result
  --set         set the rtc to the time given with --date
  --hctosys     set the system time from the hardware clock
  --systohc     set the hardware clock to the current system time
  --adjust      adjust the rtc to account for systematic drift since
                the clock was last set or adjusted
  --getepoch    print out the kernel's hardware clock epoch value
  --setepoch    set the kernel's hardware clock epoch value to the
                value given with --epoch
  --version     print out the version of hwclock to stdout

Options:
  --utc         the hardware clock is kept in coordinated universal time
  --localtime   the hardware clock is kept in local time
  --directisa   access the ISA bus directly instead of /dev/rtc
  --badyear     ignore rtc's year because the bios is broken
  --date        specifies the time to which to set the hardware clock
  --epoch=year  specifies the year which is the beginning of the
                hardware clock's epoch value
  --noadjfile   do not access /etc/adjtime. Requires the use of
                either --utc or --localtime

the command 'man hwclock' will give you an extended version of the above 
instructions.

You can use the 'ntpdate' utility to set the system clock using a timeserver.
'man ntpdate' will tell you what to do.

Refer to http://www.ntp.org/ for the full and enhanced story.


liberty root # ntpdate time.paradise.net.nz
17 May 16:02:48 ntpdate[6187]: adjust time server 203.96.152.12 offset 
0.045172 sec

There are other timeservers in the country, but finding them is needle and 
haystack stuff. ISPs are supposed to run their own, but many don't.

My serious suggestion is to set your hardware clock to GMT and tell Linux that 
you are in the Pacific/Auckland timezone. As you have discovered trying to 
set up Linux with the clock set to the localtime is just a _total_ pita. I 
think this is mainly because the authors do not realize that there is a 
GMT+13 and everything goes completely bananas at the start of summer time.
Anyway that's my exp.

Get everything going and then re-adjust the hwclock back to localtime, you 
have to tell the machine that it's on localtime with a statement to that 
effect in rc.local. I know that's vague but I have never set up a Gentoo box 
to local time, and I do not intend to start now. Anybody?

Only do this if you really cannot live with windows thinking it's in London.
Defenestration is a far better solution.

-- 
Sincerely etc.
Christopher Sawtell

NB. This PC runs Linux. If you find a virus apparently from me,
it has forged the e-mail headers on someone else's machine.
Please do not notify me when this occurs. Thanks.

Reply via email to