diff --git a/bin/date/date.1 b/bin/date/date.1 index d88cb716af7d..6d5f80fa8fe0 100644 --- a/bin/date/date.1 +++ b/bin/date/date.1 @@ -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. diff --git a/bin/date/date.c b/bin/date/date.c index 645d7a53436e..7496819ec6cd 100644 --- a/bin/date/date.c +++ b/bin/date/date.c @@ -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); }