I got a reply to my bug report on gnu.org which says:
"
From:
Paul Eggert <email address hidden>
It works for me with coreutils 8.31 on RHEL 7 x86-64:
$ date +%-Y -d "- 2010 years"
9
Most likely you are running on a 32-bit machine, and dates in the year 9
cannot be represented in a 32-bit timestamp. So a simple fix would be
for you to switch to a 64-bit machine.
"
I am using 64bit Ubuntu though.
I have downloaded and compiled coreutils 8.31 to see if the command worked for me in the upgraded version but the error remains the same.
I got a reply to my bug report on gnu.org which says:
"
From:
Paul Eggert <email address hidden>
It works for me with coreutils 8.31 on RHEL 7 x86-64:
$ date +%-Y -d "- 2010 years"
9
Most likely you are running on a 32-bit machine, and dates in the year 9
cannot be represented in a 32-bit timestamp. So a simple fix would be
for you to switch to a 64-bit machine.
"
I am using 64bit Ubuntu though.
I have downloaded and compiled coreutils 8.31 to see if the command worked for me in the upgraded version but the error remains the same.