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

农历推算(Lunar reckoning).doc

  1. 1、本文档共32页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
农历推算(Lunar reckoning)

农历推算(Lunar reckoning) You can go to Baidu, Google search, and the following is a reference: Ill help you find again, there is no direct realization of the lunar calendar chip, single chip to the Chinese calendar procedures more troublesome, there are ready-made chips best //C51 wrote the Gregorian calendar, turning the lunar calendar and the week #define uchar unsigned char #define uint unsigned int #include intrins.h * The Gregorian calendar corresponds to three bytes of lunar calendar each year, BIT7-4 said the first byte format leap month, a value of 0 for non leap, BIT3-0 corresponds to the size of lunar 1-4 1 The second byte BIT7-0 corresponds to the size of the 5-12 month of the lunar calendar, and the third byte BIT7 represents the size of the thirteenth month of the lunar calendar The corresponding month for the month is 1, indicating that the lunar month is large (30 days), which is 0, indicating small (29 days) The third byte BIT6-5 stands for the lunar calendar month of the Spring Festival, and BIT4-0 means the Gregorian calendar date of the Spring Festival * / Code, uchar, year_code[597] = { 0x04,0xAe, 0x53, //1901 0 0x0A, 0x57,0x48, //1902 3 0x55,0x26,0xBd, //1903 6 0x0D, 0x26,0x50, //1904 9 0x0D, 0x95,0x44, //1905 12 0x46,0xAA, 0xB9, //1906 15 0x05,0x6A, 0x4d, //1907 18 0x09,0xAd, 0x42, //1908 21 0x24,0xAe, 0xB6, //1909 0x04,0xAe, 0x4A, //1910 0x6A, 0x4d, 0xBe, //1911 0x0A, 0x4d, 0x52, //1912 0x0D, 0x25,0x46, //1913 0x5d, 0x52,0xBA, //1914 0x0B, 0x54,0x4e, //1915 0x0D, 0x6A, 0x43, //1916 0x29,0x6d, 0x37, //1917 0x09,0x5B, 0x4B, //1918 0x74,0x9B, 0xC1, //1919 0x04,0x97,0x54, //1920 0x0A, 0x4B, 0x48, //1921 0x5B, 0x25,0xBC, //1922 0x06,0xA5,0x50, //1923 0x06,0xd4,0x45, //1924 0x4A, 0xdA, 0xB8, //1925 0x02,0xB6,0x4d, //1926 0x09,0x57,0x42, //1927 0x24,0x97,0xB7, //1928 0x04,0x97,0x4A, //1929 0x66,0x4B, 0x3e, //1930 0x0D, 0x4A, 0x51, //1931 0x0e, 0xA5,0x46, //1932 0x56,0xd4,0xBA, //1933 0x05,0xAd, 0x4e, //1934 0x02,0xB6,0x44, //1935 0x39,0x37,0x38, //1936

您可能关注的文档

文档评论(0)

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

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

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档