今天晚上在研究各种日历纪年什么的, iOS 系统自带的日历 App,采用的应该是类似 Proleptic Gregorian calendar ,但是 1900 年、 1800 年、 1700 年(按照算法,这些日期应该都在 1582 年后改的 Gregorian calendar 算做平年)的 2 月在年览视图上都有 29 天,点击进去的月览图中显示天数只有 28 天,这是为什么? 1600 年的 2 月在年览视图上也是 29 天,但是月览视图上则是正常的闰年 29 天。
可能有用的链接:
http://superuser.com/questions/481496/why-are-excel-weekdays-wrong-for-1900
http://www.joelonsoftware.com/items/2006/06/16.html
几个相关 Wiki 的链接:
1. Gregorian calendar :
https://en.wikipedia.org/wiki/Gregorian_calendar
2. Leap year :
https://en.wikipedia.org/wiki/Leap_year
关于问题的一些参考图:
1.年览视图:
2.月览视图:
可能有用的链接:
http://superuser.com/questions/481496/why-are-excel-weekdays-wrong-for-1900
http://www.joelonsoftware.com/items/2006/06/16.html
几个相关 Wiki 的链接:
1. Gregorian calendar :
https://en.wikipedia.org/wiki/Gregorian_calendar
2. Leap year :
https://en.wikipedia.org/wiki/Leap_year
关于问题的一些参考图:
1.年览视图:
2.月览视图: