On 10/28/19 12:34 AM, zhangzhi...@mail.iap.ac.cn wrote:
~>date -d "1940-06-01" +"%Y-%m-%d"
date: invalid date ‘1940-06-01’
Presumably your TZ setting is Asia/Shanghai, as I see the symptoms as
follows:
$ TZ=Asia/Shanghai date -d "1940-06-01" +"%Y-%m-%d"
date: invalid date ‘1940-06-01’
Mr. maintainers:
Hello! I am very glad to write this email to report my problem.
When I am running commond on my server:
~>date -d "1940-06-01" +"%Y-%m-%d"
date: invalid date ‘1940-06-01’
but the other commond works right:
sense3:~>date -d '1939-06-01' +"%Y-%m-%d"
1939-06-01