hwclock

This is a discussion on hwclock within the Linux Administration forums, part of the Linux Forums category; Hello! I need some help to understand hwclock. I live in Colombia and my time zone is UTC -05:00 ...


Go Back   Usenet Forums > Linux Forums > Linux Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-31-2004
Andrew
 
Posts: n/a
Default hwclock

Hello!

I need some help to understand hwclock. I live in Colombia and my
time zone is UTC -05:00 hours. If I write the following commands I got
this->
linux# date
Fri Jul 30 17:21:52 COT 2004

linux# date -u
Fri Jul 30 22:22:12 UTC 2004

which means that IŽll always be 5 hours earlier.

The problem is when I get my hwclock hour. Look at this->
linux# hwclock
Fri Jul 30 17:24:02 2004 -0.806973 seconds

linux# hwclock
Fri Jul 30 12:25:10 2004 -0.002619 seconds

I thought that it could be the same with the command date, but it
isnŽt.

Can anyone help me to understand this??

Thanks a lot!
Reply With Quote
  #2 (permalink)  
Old 07-31-2004
Stephen Sentoff
 
Posts: n/a
Default Re: hwclock

"Andrew" <c0005010@yahoo.com.ar> wrote in message
news:b5078265.0407301427.61194f1e@posting.google.c om...
> Hello!
>
> I need some help to understand hwclock. I live in Colombia and my
> time zone is UTC -05:00 hours. If I write the following commands I got
> this->
> linux# date
> Fri Jul 30 17:21:52 COT 2004
>
> linux# date -u
> Fri Jul 30 22:22:12 UTC 2004
>
> which means that IŽll always be 5 hours earlier.
>
> The problem is when I get my hwclock hour. Look at this->
> linux# hwclock
> Fri Jul 30 17:24:02 2004 -0.806973 seconds
>
> linux# hwclock
> Fri Jul 30 12:25:10 2004 -0.002619 seconds
>
> I thought that it could be the same with the command date, but it
> isnŽt.
>
> Can anyone help me to understand this??
>
> Thanks a lot!


Hwclock always displays local time (at least on my machine -- FC1). Also
there are a number of reasons why the HW clock and the system clock, which
is the one "date" uses and is the "real" clock for linux, can be different.
See man hwclock for more information.

-- Steve


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:31 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0