Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
命令
mydate=$(date -d "90 days 19850101" +%Y%m%d%H%M%S)
产生 19850401000000。但是:
mydate=$(date -d "90 days 19830101" +%Y%m%d%H%M%S)
产生 19830401010000。
怎么可能在 1983 年在 4 月 1 日增加一小时(这是我不想要的结果),而 1985 年的答案是正确的?