Date value calculation

Source: Internet
Author: User
Using System;

Namespace CNCalendar
{
Public class CNDate
{
Private const ushort start_year= 1901;
Private const ushort END_YEAR = 2050;
Private string [] ConstellationName =
{
"Aries", "Taurus", "Gemini ",
"Cancer", "Leo", "Virgo ",
"Libra", "Scorpio", "Sagittarius ",
"Capricorn", "Aquarius", "Pisces "};
Private string [] LunarHolDayName =
{
"Xiao Han", "Da Han", "Li Chun", "Rain ",
"Stunned", "Spring Equinox", "Qingming", "Gu Yu ",
"Lixia", "Xiaoman", "Mango", "Xia Zhi ",
"Slight Heat", "Great Heat", "Autumn", "Summer Heat ",
"White Dew", "Autumn Equinox", "Cold Dew", "Frost ",
"Winter", "light snow", "heavy snow", "Winter Solstice "};

// The array gLunarDay is stored in the number of days of the month from January 1, 1901 to January 1, 2100,
// The lunar calendar can only be 29 or 30 days a month. 12 (or 13) binary digits are used for a year. The corresponding digit is 1 table and 30 days. Otherwise, the digit is 29 days.
Private int [] gLunarMonthDay = {
// The test data is only 1.1.1 -- 2050.12.31
0x4ae0, 0xa570, 0x5268, 0xd260, 0xd950, 0x6aa8, 0x56a0, 0x9ad0, 0x4ae8, 0x4ae0, // 1910
0xa4d8, 0xa4d0, 0xd250, 0xd548, 0xb550, 0x56a0, 0x96d0, 0x95b0, 0x49b8, 0x49b0, // 1920
0xa4b0, 0xb258, 0x6a50, 0x6d40, 0xada8, 0x2b60, 0x9570, 0x4978, 0x4970, 0x64b0, // 1930

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.