Make the documented parsing order for the date match reality.

This commit is contained in:
mycroft 1998-01-20 21:47:43 +00:00
parent b7728ce9c9
commit c7273dc993
2 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: date.1,v 1.20 1998/01/20 21:34:53 mycroft Exp $
.\" $NetBSD: date.1,v 1.21 1998/01/20 21:47:43 mycroft Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@ -44,10 +44,11 @@
.Nd display or set date and time
.Sh SYNOPSIS
.Nm
.Op Fl r Ar seconds
.Op Fl nu
.Op Fl r Ar seconds
.Op Cm + Ns Ar format
.Op [[cc]yy[mm[dd[hh]]]]mm[\&.ss]
.Nm ""
.Ar [[[[[cc]yy]mm]dd]hh]mm[\&.ss]
.Sh DESCRIPTION
.Nm
displays the current date and time when invoked without arguments.

View File

@ -1,4 +1,4 @@
/* $NetBSD: date.c,v 1.18 1998/01/20 21:16:39 mycroft Exp $ */
/* $NetBSD: date.c,v 1.19 1998/01/20 21:47:44 mycroft Exp $ */
/*
* Copyright (c) 1985, 1987, 1988, 1993
@ -44,7 +44,7 @@ __COPYRIGHT(
#if 0
static char sccsid[] = "@(#)date.c 8.2 (Berkeley) 4/28/95";
#else
__RCSID("$NetBSD: date.c,v 1.18 1998/01/20 21:16:39 mycroft Exp $");
__RCSID("$NetBSD: date.c,v 1.19 1998/01/20 21:47:44 mycroft Exp $");
#endif
#endif /* not lint */
@ -239,6 +239,6 @@ usage()
{
(void)fprintf(stderr,
"usage: date [-nu] [-r seconds] [+format]\n");
(void)fprintf(stderr, " [yy[mm[dd[hh]]]]mm[.ss]]\n");
(void)fprintf(stderr, " date [[[[[cc]yy]mm]dd]hh]mm[.ss]\n");
exit(1);
}