Date: Mon, 7 Jul 2014 09:10:15 +0700 From: Victor Sudakov <vas@mpeks.tomsk.su> To: freebsd-questions@freebsd.org Subject: Re: Updating and displaying CMOS clock Message-ID: <20140707021015.GA58025@admin.sibptus.tomsk.ru> In-Reply-To: <alpine.BSF.2.11.1407061454270.22171@wonkity.com> References: <20140706153206.GA46262@admin.sibptus.tomsk.ru> <alpine.BSF.2.11.1407061454270.22171@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 I have googled up another hacky way of to do that: sysctl `sysctl -e machdep.adjkerntz` It's from https://www.mail-archive.com/freebsd-hardware@freebsd.org/msg03414.html But I have not found anything to display the CMOS clock, only to set it. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140707021015.GA58025>