my server's version and date version is:~>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-01sense3:~>date -d '1940-06-02' +"%Y-%m-%d"1940-06-02sense3:~>date -d '1940-05-31' +"%Y-%m-%d"1940-05-31sense3:~>date -d '1940-07-02' +"%Y-%m-%d"1940-07-02sense3:~>date -d '1940-07-01' +"%Y-%m-%d"1940-07-01sense3:~>date -d '1940-05-01' +"%Y-%m-%d"1940-05-01
~>uname -aLinux zenglab 3.10.0-957.12.1.el7.x86_64 #1 SMP Mon Apr 29 14:59:59 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux~>date --versiondate (GNU coreutils) 8.22Copyright (C) 2013 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.This is free software: you are free to change and redistribute it.There is NO WARRANTY, to the extent permitted by law.
单位:中国科学院大气物理研究所 大气科学和地球流体力学数值模拟国家重点实验室(LASG)
地址:中国北京市朝阳区德胜门外祁家豁子华严里40#,北京,100029
邮箱:zhangzhimin@mail.iap.ac.cn
电话:13391835740