文件名称:weekday
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:581byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
算法如下:
基姆拉尔森计算公式
W= (d+2*m+3*(m+1)/5+y+y/4-y/100+y/400) mod 7
在公式中d表示日期中的日数,m表示月份数,y表示年数。
注意:在公式中有个与其他公式不同的地方:
把一月和二月看成是上一年的十三月和十四月,例:如果是2004-1-10则换算成:2003-13-10来代入公式计算。-Algorithm is as follows:基姆拉尔森formula W = (d+2* m+3* (m+1)/5+ y+ y/4-y/100+ y/400) mod 7 in the formula d said the date the number of days, m said the number of months, y said that the number of years. Note: In the formula and other formulas have a different place: the January and February as the previous year Shisan Yue and Shi Siyue, example: if it is then converted into 2004-1-10: 2003-- 13-10 to represent into the formula.
基姆拉尔森计算公式
W= (d+2*m+3*(m+1)/5+y+y/4-y/100+y/400) mod 7
在公式中d表示日期中的日数,m表示月份数,y表示年数。
注意:在公式中有个与其他公式不同的地方:
把一月和二月看成是上一年的十三月和十四月,例:如果是2004-1-10则换算成:2003-13-10来代入公式计算。-Algorithm is as follows:基姆拉尔森formula W = (d+2* m+3* (m+1)/5+ y+ y/4-y/100+ y/400) mod 7 in the formula d said the date the number of days, m said the number of months, y said that the number of years. Note: In the formula and other formulas have a different place: the January and February as the previous year Shisan Yue and Shi Siyue, example: if it is then converted into 2004-1-10: 2003-- 13-10 to represent into the formula.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
weekday.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.