[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with Date Command
From: |
Jim Meyering |
Subject: |
Re: Problem with Date Command |
Date: |
Fri, 06 Jun 2008 08:32:06 +0200 |
Eric Blake <address@hidden> wrote:
> [off-list, since the bulk of the patch is email addresses ;)]
>
> According to Philip Rowlands on 6/5/2008 7:15 AM:
> |> Either the command needs to be changed or the man page needs to be
> |> changed to express what the command actually does. Any assistance
> |> would be appreciated.
> |
> | I agree that until 2100, it would be better if the manpage gave "20" as
> | the example, or no example at all, but the wording is strictly correct.
>
> Jim, how about the following?
That's a definite improvement. Pushed.
Thanks!
> Subject: [PATCH] improve 'date +%C' documentation
>
> * src/date.c (usage): Use 20, not 21, for current century.
> * THANKS: Update.
> Reported by Dameon G. Rogers, fix suggested by Philip Rowlands.
> ---
> THANKS | 2 ++
> src/date.c | 2 +-
> 2 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/THANKS b/THANKS
> index feaf463..cb9b098 100644
> --- a/THANKS
> +++ b/THANKS
> @@ -110,6 +110,7 @@ Cray-Cyber Project
> http://www.cray-cyber.org
> Cristian Cadar address@hidden
> Cyril Bouthors address@hidden
> Dale Scheetz address@hidden
> +Dameon G. Rogers address@hidden
> Dan Hagerty address@hidden
> Dan Jacobson http://www.geocities.com/jidani
> Dan Pascu address@hidden
> @@ -434,6 +435,7 @@ Peter Seebach address@hidden
> Petter Reinholdtsen address@hidden
> Phelippe Neveu address@hidden
> Phil Richards address@hidden
> +Philip Rowlands address@hidden
> Philippe De Muyter address@hidden
> Philippe Schnoebelen address@hidden
> Phillip Jones address@hidden
> diff --git a/src/date.c b/src/date.c
> index 86b3225..aa4d69d 100644
> --- a/src/date.c
> +++ b/src/date.c
> @@ -166,7 +166,7 @@ specifies Coordinated Universal Time. Interpreted
> sequences are:\n\
> %c locale's date and time (e.g., Thu Mar 3 23:05:25 2005)\n\
> "), stdout);
> fputs (_("\
> - %C century; like %Y, except omit last two digits (e.g., 21)\n\
> + %C century; like %Y, except omit last two digits (e.g., 20)\n\
> %d day of month (e.g, 01)\n\
> %D date; same as %m/%d/%y\n\
> %e day of month, space padded; same as %_d\n\