On Fri, 22 Aug 2003 13:25:10 +0200
Roger Oberholtzer <[EMAIL PROTECTED]> wrote:

> On Fri, 22 Aug 2003 05:31:52 -0500
> "David A. Bandel" <[EMAIL PROTECTED]> wrote:
> 
> > On 21 Aug 2003 22:18:38 -0400
> > burns <[EMAIL PROTECTED]> wrote:
> > 
> > > On Thu, 2003-08-21 at 20:55, Joel Hammer wrote:
> > > > How can I tell if my linux box is running with the clock set to
> > > > universal or local time?
> > > 
> > > 
> > > 'uname -a' gives you the system time. It's pretty obvious from
> > > that what time standard it is using (local or otherwise).
> > 
> > Huh??
> > 
> > The only think uname -a shows is the time the kernel was built based
> > on the system time of the system it was built on (which may not even
> > be the system it was running on).  If you can ascertain anything
> > about the hardware clock on the system from that, Sherlock, I'd like
> > to know how.
> 
> Look at /etc/sysconfig/clock

and this has what to do with uname?

uname reads some parameters from the running kernel to provide you
kernel type, kernel version, hostname the kernel was built on,
architecture the kernel was built for, time and date (according to the
system and the letting of /etc/localtime), and a few other parameters.

As for hwclock, some systems seem to ignore hwclock's -s (--set)
parameter (as well as the --systohc argument).  I believe that's the
fault of some compile-time options.

> 
> On SuSE mine is:
> 
>       # Set to "-u" if your system clock is set to UTC, and to
>       # "--localtime" if your clock runs that way.
>       HWCLOCK="-u"
> 
> On Caldera it is:
> 
>       CLOCKMODE=GMT
> 
> On SuSE, the option is really an option to the 'hwclock' command. I
> don't see how you can get the current setting, unless you compare the
> time from'hwclock --show' with that of 'date'. If they are off by
> longer than the time it takes to run the two commands, then the
> hardware clock is probably GMT.
> 
> That is all I have.

Ciao,

David A. Bandel
-- 
Focus on the dream, not the competition.
                Nemesis Racing Team motto
GPG key autoresponder:  mailto:[EMAIL PROTECTED]

Attachment: pgp00000.pgp
Description: PGP signature

_______________________________________________
Linux-users mailing list
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users

Reply via email to