ubase/hwclock.8

32 lines
741 B
Groff
Raw Normal View History

.Dd February 2, 2015
.Dt HWCLOCK 8
.Os ubase
.Sh NAME
.Nm hwclock
.Nd query or set the hardware clock
.Sh SYNOPSIS
.Nm
.Op Fl r | Fl s | Fl w
.Op Fl u
.Op Ar dev
.Sh DESCRIPTION
.Nm
is a tool for accessing the hardware clock. You can display the current time,
set the hardware clock from the System Time, or set the System Time from the
hardware clock. It currently only works with UTC. You can use
.Ar dev
to specify the RTC device node absolute path. By default
it will use
.Pa /dev/rtc .
.Sh OPTIONS
.Bl -tag -width Ds
.It Fl r
2014-06-03 15:20:57 +00:00
Read the hardware clock and print the time on stdout.
.It Fl s
2014-06-03 15:20:57 +00:00
Set the system time from the hardware clock.
.It Fl u
Use UTC. This is the default option.
.It Fl w
2014-06-03 15:20:57 +00:00
Set the hardware clock to the system time.
.El