From b673eeb49c54c7ddd2d7d7301b5dacf0efdf653c Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 13 Sep 2005 22:09:25 +0000 Subject: [PATCH] Add date --rfc-3339. --- ChangeLog | 25 +++++++++++++++++++++++++ doc/ChangeLog | 9 +++++++++ lib/ChangeLog | 11 +++++++++++ 3 files changed, 45 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4cca5d0..fc0642b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,28 @@ +2005-09-13 Paul Eggert + + * NEWS: date has a new --rfc-3339 option, and the old --iso-8601 + option is deprecated. date and ls also have new time format + specifiers %:z, %::z, %:::z. + * src/date.c (TIME_SPEC_DATE): No longer needs to be nonzero, so + remove the "=1". + (TIME_SOEC_HOURS, TIME_SPEC_MINUTES): Must be at end now, so put + them there. + (time_spec_string, time_spec): Hours and minutes must be at + start now, so put them there. + (rfc_2822_format): Now a string constant, not a boolean. All uses + changed. + (iso_8601_format, rfc_format): Remove. + (RFC_3339_OPTION): New constant. + (long_options): Add --rfc-3339. + (usage): Add --rfc-3339. Don't mention --iso-8601. + Mention %:z, %::z, %:::z. + (main): Simplify calculation of 'format'; it was getting too hairy + to follow. Add --rfc-3339. + (show_date): Assume format arg is not NULL, which is the case + now. The default code is moved to 'main'. This simplifies things + and allows the default to be calculated just once. + * tests/misc/date: Add tests for --rfc-3339. + 2005-09-13 Jim Meyering * Version 5.3.1-cvs. diff --git a/doc/ChangeLog b/doc/ChangeLog index 15703ab..d472065 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,12 @@ +2005-09-13 Paul Eggert + + * coreutils.texi (Time conversion specifiers, Options for date): + Document date --rfc-3339 and new specifiers %:z, %::z, %:::z. Use + "date and time" consistently; the old version sometimes said "time + and date". Fix a minor bug in the documentation for --rfc-2822: + it claimed day-of-month < 10 had leading space, not leading zero. + Use a consistent format for terms like "RFC". + 2005-09-08 Paul Eggert * coreutils.texi (nice invocation): Document "niceness" versus diff --git a/lib/ChangeLog b/lib/ChangeLog index 2e960e1..2762fbc 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2005-09-13 Paul Eggert + + * strftime.c (my_strftime): Add support for %:z, %::z, %:::z. + Fix bug in formats like %2N. + 2005-09-13 Jim Meyering * xalloc.h: Revert unintended change that removed definitions @@ -69,6 +74,12 @@ %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would print `00-22'. Now, it prints `-0022', as it should. +2005-08-15 Bruno Haible + + Import from gnulib. + * regex.h (__restrict_arr): Don't define to __restrict if __cplusplus + is defined. + 2005-08-13 Jim Meyering * getdate.y (get_date): Undo part of the 2005-04-04 change, so that -- 2.7.4