resettodr(9)

resettodr9

Set battery-backed clock from system time

Usage

#include <sys/types.h>

#include <sys/systm.h>

void

resettodr(void);

Overview

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

Bugs

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.

From freebsd-manpages 6.0-5 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.