[7298] in Athena Bugs
gettime man page
daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Wed Mar 13 06:35:34 1991
Date: Wed, 13 Mar 91 06:35:01 -0500
From: "Jonathan I. Kamens" <jik@pit-manager.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Here's a man page for gettime, Jim Haynes sent me the original version
and I made some minor changes.
.\" $Source:
.\" $Author: haynes $
.\" $Header:
.\"
.\"
.TH GETTIME 8 "March 12, 1991" "MIT Project Athena"
.ds ]W MIT Project Athena
.SH NAME
gettime \- get or set system date and time
.SH SYNOPSIS
.B gettime
[
.B -s
] [
.I timehost
]
.SH DESCRIPTION
.I Gettime
obtains the date and time from a specified host using the UDP \fItime\fR
protocol described in Internet Request For Comment (RFC) 868, and
writes it to the standard output
in
.IR ctime (3)
format.
If \fItimehost\fR is not specified, a compiled-in default (currently
dcn1.ARPA) will be tried.
If the optional
.B-s
flag is supplied, and if the program is being
run by the super user, \fIgettime\fR will set the date and time on
the local host using the
.IR settimeofday (2)
system call.
.PP
.I Gettime
is normally executed at system startup from \fI/etc/rc\fR to set the date and
time on the local host from an authoritative source.
.SH SEE ALSO
ctime(3), settimeofday(2), Internet Request For Comment 868
.SH AUTHOR
Theodore Ts'o (MIT-Project Athena)