Home > database >  Ask an old question, lunar calendar to the Gregorian calendar function turn (not the solar calendar
Ask an old question, lunar calendar to the Gregorian calendar function turn (not the solar calendar

Time:09-29

Today search didn't find what I want answers, generally is the method of transfer solar calendar lunar calendar
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 years

CodePudding user response:

The fool of the look-up table method for 50 years

CodePudding 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,
  • Related