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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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! |
|
|||
|
"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 |