- 1、本文档共13页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
公历到农历的日期转换(The date of the Gregorian calendar to the lunar calendar)
公历到农历的日期转换(The date of the Gregorian calendar to the lunar calendar)
CSDN - Document Center - Javascript
Title with JScript to achieve the Gregorian calendar to the lunar calendar conversion bhw98 (original)
Keyword JScript, lunar calendar, date conversion
This paper introduces the method of conversion from Gregorian calendar to Chinese calendar date by look-up table, and gives a practical JScript script. The accepted Gregorian calendar date ranges from 2001-1-1 to 2050-12-31.
An array of LunarDaysOfMonth in 2001 of the lunar calendar / year by 2050 the number of days of information
/ / lunar month is only 29 or 30 days a year, with 12 (or 13) binary bits, from high to low, the corresponding bit 1 represents 30 days or 29 days
Var LunarDaysOfMonth = new Array
(
0xd4a8, 0xd4a0, 0xda50, 0x5aa8, 0x56a0, 0xaad8, 0x25d0, 0x92d0, 0xc958, 0xa950, 2001-2010 / /
0xb4a0, 0xb550, 0xb550, 0x55a8, 0x4ba0, 0xa5b0, 0x52b8, 0x52b0, 0xa930, 0x74a8, 2011-2020 / /
0x6aa0, 0xad50, 0x4da8, 0x4b60, 0x9570, 0xa4e0, 0xd260, 0xe930, 0xd530, 0x5aa0, 2021-2030 / /
0x6b50, 0x96d0, 0x4ae8, 0x4ad0, 0xa4d0, 0xd258, 0xd250, 0xd520, 0xdaa0, 0xb5a0, 2031-2040 / /
0x56d0, 0x4ad8, 0x49b0, 0xa4b8, 0xa4b0, 0xaa50, 0xb528, 0x6d20, 0xada0, 0x55b0 / 2041-2050
);
/ / array LunarLeapYear storage of lunar new year in 2001 to 2050 lunar month, if not 0, from high to low, each byte stored for two years
Var LunarLeapYear = new Array
(
0x40, 0x02, 0x07, 0x00, 0x50, 2001-2010 / /
0x04, 0x09, 0x00, 0x60, 0x04, 2011-2020 / /
0x00, 0x20, 0x60, 0x05, 0x00, 2021-2030 / /
0x30, 0xb0, 0x06, 0x00, 0x50, 2031-2040 / /
0x02, 0x07, 0x00, 0x50, 0x03 / 2041-2050
);
Return to the lunar year iLunarYear month / month, if there is no return to the 0
Function GetLeapMonth (iLunarYear)
{
Var Leap = LunarLeapYear[(iLunarYear - 2001) 1];
Return (((iLunarYear - 2001) 1) = = 0)? (Leap 4): (Leap 0x0f);
}
ILunarYer iLunarMonth / / return lunar month days, the result is a long integer
/ / if iLunarMonth is not a leap month, high as 0 wo
您可能关注的文档
- 装修遗憾经验大集结 装前必读(Unfortunately, the experience of assembly, assembly before reading).doc
- 装备材料(Equipment materials).doc
- 装饰材料展[发帖版]-张嘉(Decoration materials exhibition [post Edition - Zhang Jia).doc
- 装饰材料 室内设计 建筑空间环境(Decorative materials, interior design, architectural space environment).doc
- 资产评估常考的公式及案例2(Formula and case of asset evaluation 2).doc
- 账房先生符标榜升职记与惠普第二次握手(Accountant promotion foo Piao Pang and HP second handshake).doc
- 资产负债核算(Assets and liabilities accounting).doc
- 资料员考试(Reference examination).doc
- 资料3(Information 3).doc
- 资本公积核算中的所得税如何处理(How to deal with income tax in capital reserve accounting).doc
最近下载
- 项目管理知识体系指南.pptx VIP
- 2025年春季学期开学思政第一课:以科技创新铸就民族复兴之魂7篇.pdf
- 青海电网新型储能电站调度运行管理办法-10.10.docx VIP
- (部编版一年级语文下册生字练字帖).pdf
- 计算机控制系统课后习题答案1.pdf VIP
- GB_T 31497-2024 信息技术 安全技术 信息安全管理 监视、测量、分析和评价.pdf
- 《企业现金流量管理国内外文献综述》4000字.docx
- 《公共管理》教学大纲(本科).pdf VIP
- GB55015-2021 建筑节能与可再生能源利用通用规范.docx
- 《电机学》(华中科技大学)中国大学MOOC(慕课)章节测验试题(答案).pdf
文档评论(0)