Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jul 2014 22:50:05 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Victor Sudakov <vas@mpeks.tomsk.su>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Updating and displaying CMOS clock
Message-ID:  <alpine.BSF.2.11.1407062249020.3437@wonkity.com>
In-Reply-To: <20140707021238.GB57761@admin.sibptus.tomsk.ru>
References:  <20140706153206.GA46262@admin.sibptus.tomsk.ru> <alpine.BSF.2.11.1407061454270.22171@wonkity.com> <20140707021238.GB57761@admin.sibptus.tomsk.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.11.1407062249020.3437>