summaryrefslogtreecommitdiff
path: root/static/freebsd/man9/resettodr.9 4.html
blob: 9b49968473ff5766bdb2a1e0cd05475c27650a1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<table class="head">
  <tr>
    <td class="head-ltitle">RESETTODR(9)</td>
    <td class="head-vol">Kernel Developer's Manual</td>
    <td class="head-rtitle">RESETTODR(9)</td>
  </tr>
</table>
<div class="manual-text">
<section class="Sh">
<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
<p class="Pp"><code class="Nm">resettodr</code> &#x2014; <span class="Nd">set
    battery-backed clock from system time</span></p>
</section>
<section class="Sh">
<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
<p class="Pp"><code class="In">#include
    &lt;<a class="In">sys/types.h</a>&gt;</code>
  <br/>
  <code class="In">#include &lt;<a class="In">sys/systm.h</a>&gt;</code></p>
<p class="Pp"><var class="Ft">void</var>
  <br/>
  <code class="Fn">resettodr</code>(<var class="Fa" style="white-space: nowrap;">void</var>);</p>
</section>
<section class="Sh">
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
<p class="Pp">The
    <a class="permalink" href="#resettodr"><code class="Fn" id="resettodr">resettodr</code></a>()
    function sets the system's battery-backed clock based on the contents of the
    system <var class="Va">time</var> variable.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
  ALSO</a></h1>
<p class="Pp"><a class="Xr">inittodr(9)</a>, <a class="Xr">time(9)</a></p>
</section>
<section class="Sh">
<h1 class="Sh" id="BUGS"><a class="permalink" href="#BUGS">BUGS</a></h1>
<p class="Pp">On many systems, <code class="Fn">resettodr</code>() has to
    convert from <var class="Va">time</var> to a time expressed in terms of
    year, month, day, hours, minutes, and seconds. Many of the implementations
    could share code, but do not.</p>
</section>
</div>
<table class="foot">
  <tr>
    <td class="foot-date">November 13, 1995</td>
    <td class="foot-os">FreeBSD 15.0</td>
  </tr>
</table>