Traditional Culture Encyclopedia - Almanac inquiry - How to count 28 stars

How to count 28 stars

Serial number of 28 boarding houses = [23+A (actual days)] mod 28 4. Calculation of actual days A=B (basic days) +C (leap day) B= (calculation year-1)* 365+ (days to be calculated to the year) Example: 65438+ February 6984. 365+(3 1+1) = 723827 (days), where 3 1 is 65438+3 1 day in1month, and1is/in February. The basic number of days on August 28th, 308 A.D. B = (308-1) * 365+(31+28+31+30+31+27) = 65438. Gregorian calendar C= (calculation year-1)div 4- error correction value+fixvalue2fixevalue2 is 0 or 1. The constant value is 0, the number of the current year is leap year (Gregorian leap year method), and the number after March 1 is 1. Calculation of error correction value: the date from 65438+ 10/to 1 582 65438+10/4 is 0. 1582 65438+ 10/0 to1699 65438+February 3 1 Yes 10. Starting from 170 1 year 1 month 1, 1 will be accumulated every century, but 1 will not accumulate centuries divisible by 400. This method can be calculated. -One question, what should be the correction value of 1700 this year? It is not mentioned in the algorithm, but it seems to be 10. Example 170 1 year 1 month 1, and the error correction value is 180 1 year 1 month 1 2. The error correction of 190 1 year 1 month 1 day is 1 32 1 0/year1month1day. 5. Example: 1998.3. 15 b's week, general branch and 28 hotels = (1998-1) * 365+(31+28+1) Div 4-13+0 = 486a = b+c = 728979+486 = 729465 week serial number =(5+729465)mod 7 = 0, which means Sunday branch serial number = (13+729465) mod 60.