[lug] date
Sean Reifschneider
jafo at tummy.com
Sat Oct 2 13:05:10 MDT 1999
On Sat, Oct 02, 1999 at 12:30:34PM +0000, chrism at pop.peakpeak.com wrote:
>/sbin/clock -w writes the current time to BIOS I believe.
You have to be careful that you specify the "-a" and "-u" flags, though:
[root at testbox2 jafo]# date
Sat Oct 2 14:06:29 MDT 1999
[root at testbox2 jafo]# /sbin/clock -r
Sat Oct 2 20:07:10 1999 -0.846650 seconds
[root at testbox2 jafo]# /sbin/clock -ru
Sat Oct 2 14:07:12 1999 -0.206754 seconds
[root at testbox2 jafo]# /sbin/clock -wu
[root at testbox2 jafo]#
If I had done a "clock -w", it would have come up 6 hours off the next time
I rebooted. The difference is wether you set the BIOS clock to UTC, or to
local time... As you can see, I prefer UTC.
Sean
--
"Sometimes Omaha can't be avoided."
-- Howard Borden the navigator, _Bob_Newhart_
Sean Reifschneider, Inimitably Superfluous <jafo at tummy.com>
URL: <http://www.tummy.com/xvscan> HP-UX/Linux/FreeBSD/BSDOS scanning software.
More information about the LUG
mailing list