xref: /netbsd-src/usr.sbin/rdate/rdate.8 (revision 82d56013d7b633d116a93943de88e08335357a7c)
1.\"	$NetBSD: rdate.8,v 1.14 2017/08/27 20:45:47 wiz Exp $
2.\"
3.\" Copyright (c) 1994 Christos Zoulas
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\"
15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25.\"
26.Dd August 26, 2017
27.Dt RDATE 8
28.Os
29.Sh NAME
30.Nm rdate
31.Nd set the system's date from a remote host
32.Sh SYNOPSIS
33.Nm
34.Op Fl 46aps
35.Ar host
36.Sh DESCRIPTION
37.Nm
38displays and sets the local date and time from the
39host name or address given as the argument.
40It uses the RFC 868 protocol which is usually implemented as a
41built-in service of
42.Xr inetd 8 .
43.Pp
44Available options:
45.Bl -tag -width indent
46.It Fl 4
47Forces
48.Nm
49to use IPv4 addresses only.
50.It Fl 6
51Forces
52.Nm
53to use IPv6 addresses only.
54.It Fl a
55Use the
56.Xr adjtime 2
57call to gradually skew the local time to the
58remote time rather than just hopping.
59.It Fl p
60Do not set, just print the remote time
61.It Fl s
62Do not print the time.
63.El
64.Sh FILES
65.Bl -tag -width /var/log/wtmp -compact
66.It Pa /var/log/wtmp
67A record of date resets and time changes.
68.El
69.Sh SEE ALSO
70.Xr adjtime 2 ,
71.Xr gettimeofday 2 ,
72.Xr utmp 5 ,
73.Xr inetd 8
74