diff options
author | Jim Meyering <jim@meyering.net> | 2003-09-03 08:28:08 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-09-03 08:28:08 +0000 |
commit | 54feed1c1a35df60a511948560240929dd7f9fe8 (patch) | |
tree | 2f7bb6dfcea5f19d285343a0847becb65849c001 | |
parent | ccef10d3736d45d2530ebd1d579f6924e6ba930c (diff) | |
download | coreutils-54feed1c1a35df60a511948560240929dd7f9fe8.tar.xz |
(relative_time_table): Use tDAY_UNIT for "tomorrow",
"yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
course with correspondingly smaller numbers for tomorrow and
yesterday. From Tadayoshi Funaba. Originally installed into
sh-utils on 1999-08-07, but the patch was mistakenly reverted by
the next change to that shared file (but this time in fileutils)
on 1999-08-29.
-rw-r--r-- | lib/getdate.y | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/getdate.y b/lib/getdate.y index b35130b7c..c131dde13 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -527,10 +527,10 @@ static table const time_units_table[] = /* Assorted relative-time words. */ static table const relative_time_table[] = { - { "TOMORROW", tMINUTE_UNIT, 24 * 60 }, - { "YESTERDAY",tMINUTE_UNIT, - (24 * 60) }, - { "TODAY", tMINUTE_UNIT, 0 }, - { "NOW", tMINUTE_UNIT, 0 }, + { "TOMORROW", tDAY_UNIT, 1 }, + { "YESTERDAY",tDAY_UNIT, -1 }, + { "TODAY", tDAY_UNIT, 0 }, + { "NOW", tDAY_UNIT, 0 }, { "LAST", tUNUMBER, -1 }, { "THIS", tUNUMBER, 0 }, { "NEXT", tUNUMBER, 1 }, |