From 2f1384b7e4674f2bdf4c471eee050bece59e01e6 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 27 Oct 2011 22:02:23 +0200 Subject: date: reinstate the --iso-8601 (-I) option We deprecated and undocumented the --iso-8601 (-I) option mostly because date could not parse that particular format. Now that it can, it's time to restore the documentation. * src/date.c (usage): Document it. * doc/coreutils.texi (Options for date): Reinstate documentation. Reported by Hubert Depesz Lubaczewski in http://bugs.gnu.org/7444. --- src/date.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/date.c b/src/date.c index 755736ab6..288804a9b 100644 --- a/src/date.c +++ b/src/date.c @@ -87,7 +87,7 @@ static struct option const long_options[] = { {"date", required_argument, NULL, 'd'}, {"file", required_argument, NULL, 'f'}, - {"iso-8601", optional_argument, NULL, 'I'}, /* Deprecated. */ + {"iso-8601", optional_argument, NULL, 'I'}, {"reference", required_argument, NULL, 'r'}, {"rfc-822", no_argument, NULL, 'R'}, {"rfc-2822", no_argument, NULL, 'R'}, @@ -131,6 +131,10 @@ Display the current time in the given FORMAT, or set the system date.\n\ \n\ -d, --date=STRING display time described by STRING, not `now'\n\ -f, --file=DATEFILE like --date once for each line of DATEFILE\n\ + -I[TIMESPEC], --iso-8601[=TIMESPEC] output date/time in ISO 8601 format.\n\ + TIMESPEC=`date' for date only (the default),\n\ + `hours', `minutes', `seconds', or `ns' for date\n\ + and time to the indicated precision.\n\ "), stdout); fputs (_("\ -r, --reference=FILE display the last modification time of FILE\n\ -- cgit v1.2.3-54-g00ecf