Setting the system clock

I have found under Linux that I can change the time using the date command, but when I reboot the machine the time is wrong again.  It appears that for some reason Linux isn't actually changing the system clock.  I'm not really sure what's going on with it.  This problem doesn't occur with Windows NT.  I can set the system clock just fine with NT and after a reboot the time will still be correct.

What am I doing wrong (other than occassionally using NT)?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Set the time as you normally would then type "clock -w" this will update your hardware clock.
Unlike other operating systems, Linux maintanes a separate software clock from the hardware clock. This is so that you can have your hardware clock set to universal time, and your software clock will be set to your local time. This is usefull when you have many servers in different time zones. Anyway, "Date" and "Time" use the software clock that Linux maintanes. The "Clock" command manipulates the hardware clock based on the software clock.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.