max*_*max 5 linux unix centos-6
如果你cal 9 1752在 Linux 终端中输入,你会得到奇怪的输出。例如:
[max@avi ~]$ cal 9 1752
September 1752
Su Mo Tu We Th Fr Sa
1 2 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Run Code Online (Sandbox Code Playgroud)
你有没有注意到从 3 到 13 的日期不见了?为什么会这样?我正在使用 CentOS 6.2。
Oza*_*ray 15
这不是问题,这些日期在 1752 年 9 月被跳过了。
英国和大英帝国(包括现在的美国东部)在 1752 年采用了公历,到那时需要修正 11 天。1752 年 9 月 2 日星期三之后是 1752 年 9 月 14 日星期四。
参考:http : //en.wikipedia.org/wiki/Gregorian_calendar