var total,
m,
n,
k;
var isEnd = false;
var tmp = TheDate.getFullYear();
total = (tmp - 1921) * 365 + Math.floor((tmp - 1921) / 4) + madd[TheDate.getMonth()] + TheDate.getDate() - 38;
if (TheDate.getYear() % 4 == 0 && TheDate.getMonth() > 1) {
total++;
}
for (m = 0;; m++) {
k = (CalendarData[m] < 0xfff) ? 11: 12;
for (n = k; n >= 0; n--) {
if (total <= 29 + GetBit(CalendarData[m], n)) {
isEnd = true;
break;
}
total = total - 29 - GetBit(CalendarData[m], n);
}
if (isEnd) break;
}
网络传播视听节目许可证(0107190)
京ICP备18036557号
中国互联网举报中心
光明日报学习专刊
节气里的大美中国
阔步迈向网络强国
“千万工程”新画卷
时代楷模·榜样力量
“互联网+督查”平台
网络举报监督专区
民营经济和高质量发展
核心价值观主题微电影
var total,
m,
n,
k;
var isEnd = false;
var tmp = TheDate.getFullYear();
total = (tmp - 1921) * 365 + Math.floor((tmp - 1921) / 4) + madd[TheDate.getMonth()] + TheDate.getDate() - 38;
if (TheDate.getYear() % 4 == 0 && TheDate.getMonth() > 1) {
total++;
}
for (m = 0;; m++) {
k = (CalendarData[m] < 0xfff) ? 11: 12;
for (n = k; n >= 0; n--) {
if (total <= 29 + GetBit(CalendarData[m], n)) {
isEnd = true;
break;
}
total = total - 29 - GetBit(CalendarData[m], n);
}
if (isEnd) break;
}