resettodr (9)
Leading comments
$NetBSD: resettodr.9,v 1.1 1995/11/25 21:24:51 perry Exp $
Copyright (c) 1994 Christopher G. Demetriou
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this li...
(The comments found at the beginning of the groff file "man9/resettodr.9freebsd".)
NAME
resettodr
- 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.
SEE ALSO
inittodr(9),
time(9)
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.