Overhaul getdate.y. In particular, remove minutes-based logic

(combine with existing seconds-based), treat '-' as punctuation rather
than a negative number indicator (eliminates several special cases),
use a single list of special words instead of several separate lists,
use table-driven abbreviation logic (eliminate duplicate word entries
and special-case abbreviation and plural handling).  The result is
shorter, simpler (judging from comments, earlier maintainers didn't
understand the special handling for "negative years"), handles more
cases (e.g., "tu" is now a recognized abbreviation for "tuesday",
"3rd" is now equivalent to "third") and it has 2 fewer shift/reduce
conflicts.
This commit is contained in:
Tim Kientzle 2005-04-23 18:38:32 +00:00
parent 8d8311c95f
commit ecf6d502eb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145456

File diff suppressed because it is too large Load Diff