(TIME_SPEC_DATE): No longer needs to be nonzero, so
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 13 Sep 2005 22:08:41 +0000 (22:08 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 13 Sep 2005 22:08:41 +0000 (22:08 +0000)
commit2c29ba03acebe73681b1eee3227d48723bee2a6b
treeed01a7785d060dc59371ae1de7565010d89e8908
parent7846768c6c727afaee4ed22d4ab4fb43d3030cae
(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.
src/date.c