网站大量收购独家精品文档,联系QQ:2885784924

公历到农历的日期转换(The date of the Gregorian calendar to the lunar calendar).doc

公历到农历的日期转换(The date of the Gregorian calendar to the lunar calendar).doc

  1. 1、本文档共13页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档