[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "date" doesn't work like "date '+%c'"

From: Jim Meyering
Subject: Re: "date" doesn't work like "date '+%c'"
Date: 10 Mar 2001 08:57:06 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.99

Ole Laursen <address@hidden> wrote:
| According to the info-page for date, running just plain
|   date
| is supposed to work like
|   date '+%c'
| An excerpt from the front page:
|    `date' with no arguments prints the current time and date, in the
|    format of the `%c' directive (described below).
| However:
|   ole: ~$ date
|   fre mar  9 18:11:39 CET 2001
|   ole: ~$ date '+%c'
|   fre 09 mar 2001 18:11:45 CET
| I'm using the Danish locale (da_DK) and 'date (GNU sh-utils) 2.0'.

Thanks for the report.
I've just fixed the documentation:

Index: sh-utils.texi
RCS file: /fetish/shellutils/doc/sh-utils.texi,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -r1.88 -r1.89
--- sh-utils.texi       2001/03/09 18:28:11     1.88
+++ sh-utils.texi       2001/03/10 07:53:35     1.89
@@ -2198,14 +2198,16 @@
 @cindex time, printing or setting
 @cindex printing the current time
address@hidden with no arguments prints the current time and date, in the
-format of the @samp{%c} directive (described below).  Synopses:
 date address@hidden@dots{} address@hidden
 date [-u|--utc|--universal] @c this avoids a newline in the output
 [ MMDDhhmm[[CC]YY][.ss] ]
 @end example
+Invoking @code{date} with no arguments is equivalent to invoking
address@hidden '+%a %b %e %H:%M:%S %Z %Y'}.
 @findex strftime @r{and @code{date}}
 @cindex time formats

reply via email to

[Prev in Thread] Current Thread [Next in Thread]