Pay attention to the problem, not solar calendar lunar calendar, but the lunar turn Gregorian calendar!
No, for 50!!!
Master of hope can give me the answer
CodePudding user response:
I have a dynamic library to write their own, if you need to can contact me, friends can see my QQ, or [email protected]CodePudding user response:
The fool look-up table method for 50 yearsCodePudding user response:
The fool of the look-up table method for 50 yearsCodePudding user response:
Itself turn solar calendar lunar calendar is to use the look-up table method, the lunar calendar to the Gregorian calendar is the same, put the function to the line,CodePudding user response:
There are two information data, on the internal information, days of the lunar year information,I suggest to add a, the lunar New Year date, the province of calculating every time,
It is more than 50 years, 50 group
First using look-up table method to get on the starting date of the Gregorian calendar (the last 50 years of the Spring Festival as an array, directly take), ld_start,
And calculate on the day of the lunar calendar is the first in the whole lunar year how many days, integer li_days.
Reoccupy, RelativeDate (date, n), it came out,
From the Gregorian calendar to the lunar calendar with the same method, pay attention to the Gregorian calendar date not the date type, replace with other types,
CodePudding user response:
There are two information data, on the internal information, days of the lunar year information,I suggest to add a, the lunar New Year date, the province of calculating every time,
It is more than 50 years, 50 group
First using look-up table method to get on the starting date of the Gregorian calendar, ld_start,
And calculate on the day of the lunar calendar is the first in the whole lunar year how many days, integer li_days. This process is a key, the understanding of the table, leap month, etc.,
Reoccupy, RelativeDate (date, n), it came out,
From the Gregorian calendar to the lunar calendar with the same method, pay attention to the Gregorian calendar date not the date type, replace with other types,