> Seems to work fine when date specification is not quite as ambiguous
> as "2018/05".
>
> $ date --iso --date='2018-05-01 5 years ago'
> 2013-05-01

What is special about --iso? If I use the following date string, I get
a future time. Why?

$ date --date='2018-05-01 4 years 11 months ago' +%Y%m
202106

-- 
Regards,
Peng

Reply via email to