summaryrefslogtreecommitdiff
path: root/lib/getdate.y
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-08-07 09:50:34 +0000
committerJim Meyering <jim@meyering.net>1999-08-07 09:50:34 +0000
commit12fbee444c89cbd5ee50e277ac68190659eda9a0 (patch)
tree03fb375b64a66a0bae074581ac535baa3a729a9b /lib/getdate.y
parent0abcbb7b3d4e184335813436e61f8ddfd5c37dd3 (diff)
downloadcoreutils-12fbee444c89cbd5ee50e277ac68190659eda9a0.tar.xz
(OtherTable[]): Use tDAY_UNIT for `tomorrow,'
`yesterday,' `today,' and `now' rather than tMINUTE_UNIT. Of course with correspondingly smaller numbers for tomorrow and yesterday. This change does not change the way the code works, since the grammar rules for the two symbols are analogous.
Diffstat (limited to 'lib/getdate.y')
-rw-r--r--lib/getdate.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/getdate.y b/lib/getdate.y
index 9dc10483d..056c36667 100644
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -503,10 +503,10 @@ static TABLE const UnitsTable[] = {
/* Assorted relative-time words. */
static TABLE const OtherTable[] = {
- { "tomorrow", tMINUTE_UNIT, 1 * 24 * 60 },
- { "yesterday", tMINUTE_UNIT, -1 * 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", tMINUTE_UNIT, 0 },
{ "next", tUNUMBER, 1 },