resettodr
set battery-backed clock from system time
- Provided by: freebsd-manpages (Version: 12.2-2build1)
- Report a bug
set battery-backed clock from system time
#include
<sys/types.h>
#include <sys/systm.h>
void
resettodr(void);
The
resettodr()
function sets the system's battery-backed clock based on the contents of the
system time variable.
On many systems, resettodr() has to
convert from time to a time expressed in terms of
year, month, day, hours, minutes, and seconds. Many of the implementations
could share code, but do not.