xref: /netbsd-src/usr.sbin/rdate/rdate.8 (revision d909946ca08dceb44d7d0f22ec9488679695d976)
1.\"	$NetBSD: rdate.8,v 1.11 2009/10/21 01:07:47 snj 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 April 30, 1994
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 psa
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. It uses the RFC 868
40protocol which is usually implemented as a built-in service of
41.Xr inetd 8 .
42.Pp
43Available options:
44.Pp
45.Bl -tag -width indent
46.It Fl p
47Do not set, just print the remote time
48.It Fl s
49Do not print the time.
50.It Fl a
51Use the
52.Xr adjtime 2
53call to gradually skew the local time to the
54remote time rather than just hopping.
55.El
56.Sh FILES
57.Bl -tag -width /var/log/wtmp -compact
58.It Pa /var/log/wtmp
59A record of date resets and time changes.
60.El
61.Sh SEE ALSO
62.Xr adjtime 2 ,
63.Xr gettimeofday 2 ,
64.Xr utmp 5 ,
65.Xr inetd 8
66