On Sun, Apr 23, 2000 at 10:30:08PM -0700, S.Toms wrote:
On Sun, 23 Apr 2000, tabanna wrote:
t> t> Hello Tim :) t> t> Could you please help a 'Dummy', me ? t> t> I wish to use my ISP's NTP Server to keep my PC & Linux t> on Local Time which is GMT +3 t> ____________ t> t> how can I adapt your Info to do this for me ? t> ........................... t> ntpdate -su -t 60 clock.xxxx.xxx.xxx t> t> hwclock --systohc (system clock to hardware clock) t> hwclock --hctosys (hardware clock to system clock) t> -- t>
I'll respond to this as it was my response above with the hwclock command that brought about your question. If you use ntpdate to set the system time, you can sync the CMOS time with the following
hwclock --systohc
unfortunately if you have the CMOS clock set to GMT, then this isn't such a great idea as it will make the CMOS time that of the current time which isn't set to GMT. If you don't use GMT in the CMOS, then you won't have any worries with the above. If you do have the CMOS set to GMT, then you would want to do the following rather then the above:
hwclock --set --date="`date -u +"%D %T"`"
Just use: hwclock --utc --systohc -- Brad Shelton On Line Exchange http://online-isp.com -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/