Updating and displaying CMOS clock
wblock at wonkity.com
Mon Jul 7 04:50:09 UTC 2014
On Mon, 7 Jul 2014, Victor Sudakov wrote:
> Warren Block wrote:
>>> In other words, what's the FreeBSD equivalent of the Linux
>>> "hwclock --systohc" command?
>> Offhand, I don't know. But date(1) sets both kernel and hardware
>> clocks, so a hacky way to do that is
>> date -v +0S
> BTW this command does not set anything, it only displays the time with
> the specified offset.
Whoops, that's true. It would have to pipe that into another instance
of date to actually set the date.
More information about the freebsd-questions