LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-10-2010, 08:40 AM   #1
skoinga
Member
 
Registered: May 2010
Posts: 87

Rep: Reputation: 0
setting bios clock?


Hi,

it's possibile to modify the bios clock from Linux?
"hardware clock" it's the same of "bios clock"?
 
Old 06-10-2010, 08:42 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Yes, check out the `hwclock` command, and it's option if you like: --systohc

Sasha
 
Old 09-28-2010, 03:27 AM   #3
raghu437
LQ Newbie
 
Registered: Feb 2010
Posts: 6

Rep: Reputation: 0
hwclock showing error time

hi all. my hardware clock is showing addition of 5:30 to the original time .where im using c programming to set the time and date. u can get the my code from google search.by typing "Real Time Clock (RTC) Drivers for Linux"
pasagadaraghu@gmail.com
 
Old 09-28-2010, 05:32 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
This is how I set the time:

Code:
date -s "$month/$day/$year $hour:$minute:$second"
/sbin/hwclock -r
/sbin/hwclock --adjust
/sbin/hwclock --systohc
This is actually within a script.
 
  


Reply



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 On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setting up the hardware clock Mufasa Linux - Newbie 4 08-31-2009 02:43 PM
Setting system date and time affecting the clock and date on BIOS satimis Ubuntu 7 09-21-2007 08:02 AM
setting the clock, and a few other questions primussucks Linux - Newbie 3 01-31-2006 12:38 PM
setting the clock dasy2k1 Linux - Newbie 6 10-08-2005 02:19 PM
Setting Clock ArthurDent Linux - Newbie 2 03-27-2004 07:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration