From cbf6f7d3584de28d976725bf3989eb9ca5baf3af Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Wed, 6 May 1998 06:51:42 +0000 Subject: Correct use of .Nm and other cosmetics. Add rcsid. Remove unused #inc. --- bin/date/date.1 | 24 ++++++++++++------------ bin/date/date.c | 9 ++++----- bin/date/netdate.c | 7 ++++--- bin/date/vary.c | 7 +++++-- 4 files changed, 25 insertions(+), 22 deletions(-) (limited to 'bin/date') diff --git a/bin/date/date.1 b/bin/date/date.1 index 8c5429ff0149..ffe5413080ec 100644 --- a/bin/date/date.1 +++ b/bin/date/date.1 @@ -33,7 +33,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)date.1 8.3 (Berkeley) 4/28/95 -.\" $Id: date.1,v 1.22 1997/12/11 02:38:55 brian Exp $ +.\" $Id: date.1,v 1.23 1998/04/20 21:06:38 rnordier Exp $ .\" .Dd November 17, 1993 .Dt DATE 1 @@ -52,7 +52,7 @@ .Op Fl f Ar fmt Ar date | [[[[yy]mm]dd]HH]MM[\&.ss] .Op Cm + Ns Ar format .Sh DESCRIPTION -.Nm +.Nm Date displays the current date and time when invoked without arguments. Providing arguments will format the date and time in a user-defined way or set the date. @@ -84,12 +84,12 @@ is used to synchronize the clocks on groups of machines. By default, if .Xr timed is running, -.Nm date +.Nm will set the time on all of the machines in the local group. The .Fl n option stops -.Nm date +.Nm from setting the time for other than the current machine. .It Fl r Print out the date and time in @@ -118,8 +118,8 @@ part of the date is set. The date can be adjusted as many times as required using these flags. Flags are processed in the order given. .Pp Minutes are in the range 0-59, hours are in the range 1-12, month days -are in the range 1-31, week days are in the range 0-6 (sun-sat), months -are in the range 1-12 (jan-dec) and years are in the range 80-38 or +are in the range 1-31, week days are in the range 0-6 (Sun-Sat), months +are in the range 1-12 (Jan-Dec) and years are in the range 80-38 or 1980-2038. .Pp If @@ -250,7 +250,7 @@ is affected by the following environment variables: .It Ev TZ The timezone to use when displaying dates. The normal format is a pathname relative to -.Dq Pa /usr/share/zoneinfo . +.Pa /usr/share/zoneinfo . For example, the command .Dq TZ=America/Los_Angeles date displays the current time in California. @@ -261,9 +261,9 @@ for more information. .Sh FILES .Bl -tag -width /var/log/messages -compact .It Pa /var/log/wtmp -A record of date resets and time changes. +a record of date resets and time changes .It Pa /var/log/messages -A record of the user setting the time. +a record of the user setting the time .El .Sh SEE ALSO .Xr gettimeofday 2 , @@ -285,14 +285,14 @@ Occasionally, when synchronizes the time on many hosts, the setting of a new time value may require more than a few seconds. On these occasions, -.Nm date +.Nm prints: .Ql Network time being set . The message .Ql Communication error with timed occurs when the communication between -.Nm date +.Nm and .Xr timed fails. @@ -313,7 +313,7 @@ will be running on .Tn GMT . .Sh STANDARDS The -.Nm date +.Nm command is expected to be compatible with .St -p1003.2 . .Sh HISTORY diff --git a/bin/date/date.c b/bin/date/date.c index a66d53f2a54c..e4f4270aa860 100644 --- a/bin/date/date.c +++ b/bin/date/date.c @@ -29,8 +29,6 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $Id: date.c,v 1.22 1997/12/11 02:38:56 brian Exp $ */ #ifndef lint @@ -40,18 +38,19 @@ static char const copyright[] = #endif /* not lint */ #ifndef lint +#if 0 static char const sccsid[] = "@(#)date.c 8.2 (Berkeley) 4/28/95"; +#endif +static const char rcsid[] = + "$Id$"; #endif /* not lint */ -#include #include #include #include -#include #include #include -#include #include #include #include diff --git a/bin/date/netdate.c b/bin/date/netdate.c index e52d90e85405..2f7bdc9c4918 100644 --- a/bin/date/netdate.c +++ b/bin/date/netdate.c @@ -29,12 +29,14 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $Id: netdate.c,v 1.7 1997/03/10 19:49:03 guido Exp $ */ #ifndef lint +#if 0 static char const sccsid[] = "@(#)netdate.c 8.1 (Berkeley) 5/31/93"; +#endif +static const char rcsid[] = + "$Id$"; #endif /* not lint */ #include @@ -48,7 +50,6 @@ static char const sccsid[] = "@(#)netdate.c 8.1 (Berkeley) 5/31/93"; #include #include -#include #include #include diff --git a/bin/date/vary.c b/bin/date/vary.c index c1d5796e23f2..a6419d5b8635 100644 --- a/bin/date/vary.c +++ b/bin/date/vary.c @@ -22,10 +22,13 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $Id$ */ +#ifndef lint +static const char rcsid[] = + "$Id$"; +#endif /* not lint */ + #include #include #include -- cgit v1.2.3