LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   setting bios clock? (https://www.linuxquestions.org/questions/linux-general-1/setting-bios-clock-813343/)

skoinga 06-10-2010 08:40 AM

setting bios clock?
 
Hi,

it's possibile to modify the bios clock from Linux?
"hardware clock" it's the same of "bios clock"?

GrapefruiTgirl 06-10-2010 08:42 AM

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

Sasha

raghu437 09-28-2010 03:27 AM

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

H_TeXMeX_H 09-28-2010 05:32 AM

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.


All times are GMT -5. The time now is 06:30 PM.