diff options
author | Jim Meyering <jim@meyering.net> | 1997-02-22 20:13:19 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-02-22 20:13:19 +0000 |
commit | db78b4797a25517ecd295b09872c6bb7c4d08e05 (patch) | |
tree | 3346ef5e735c774fcf13b3660853077d326a9929 /lib | |
parent | 9de7f6a024c8bbda69b87db84739f020ecfd6013 (diff) | |
download | coreutils-db78b4797a25517ecd295b09872c6bb7c4d08e05.tar.xz |
(tMONTH_UNIT): Increase yyRelMonth by $1, not just by 1.
(tDAY_UNIT): Likewise for yyRelDay.
(tHOUR_UNIT): Likewise for yyRelHour.
(tMINUTE_UNIT): Likewise for yyRelMinutes.
(tSEC_UNIT): Likewise for yyRelSeconds.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/getdate.y | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/getdate.y b/lib/getdate.y index d33fa0630..f63bebfa1 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -356,7 +356,7 @@ relunit : tUNUMBER tYEAR_UNIT { yyRelMonth += $1 * $2; } | tMONTH_UNIT { - yyRelMonth++; + yyRelMonth += $1; } | tUNUMBER tDAY_UNIT { yyRelDay += $1 * $2; @@ -365,7 +365,7 @@ relunit : tUNUMBER tYEAR_UNIT { yyRelDay += $1 * $2; } | tDAY_UNIT { - yyRelDay++; + yyRelDay += $1; } | tUNUMBER tHOUR_UNIT { yyRelHour += $1 * $2; @@ -374,7 +374,7 @@ relunit : tUNUMBER tYEAR_UNIT { yyRelHour += $1 * $2; } | tHOUR_UNIT { - yyRelHour++; + yyRelHour += $1; } | tUNUMBER tMINUTE_UNIT { yyRelMinutes += $1 * $2; @@ -383,7 +383,7 @@ relunit : tUNUMBER tYEAR_UNIT { yyRelMinutes += $1 * $2; } | tMINUTE_UNIT { - yyRelMinutes++; + yyRelMinutes += $1; } | tUNUMBER tSEC_UNIT { yyRelSeconds += $1 * $2; @@ -392,7 +392,7 @@ relunit : tUNUMBER tYEAR_UNIT { yyRelSeconds += $1 * $2; } | tSEC_UNIT { - yyRelSeconds++; + yyRelSeconds += $1; } ; |