resettodr(9) set battery-backed clock from system time

SYNOPSIS

In sys/types.h In sys/systm.h Ft void Fn resettodr void

DESCRIPTION

The Fn resettodr function sets the system's battery-backed clock based on the contents of the system time variable.

BUGS

On many systems, Fn 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.