resettodr(9freebsd)

resettodr9freebsd

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.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11–13

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 12.2-2 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.