Visual Basic Sample Programs for Chinese Lunar Calendar
The sample Visual Basic Program for Chinese Lunar Calendar uses a Microsoft Access database of the Sun and Moon astronomical data instead of astronomical formula. You can export data into SQL, Oracle, MySQL, Sybase, or FoxPro database. Since Visual Basic codes is similar to ASP codes, it's easy to apply the astronomical data into Internet applications. The following are the sample programs
- The Chinese Calendar conversion from 1645 to 2245 - solar Sector points and new moon
- The Western zodiac and the Easter Sunday Calculator - solar Center Points and full moon
- The Equation of Time - bonus program
The complete Sun and Moon data is from 1 A.D. to 2246 A.D. The data for
Chinese Calendar we want is from Year 1645 to 2245, because the logic for
Chinese Lunar Calendar to
assign the Lunar Months is the method of
The sample Visual Basic program enables to do the Chinese Lunar Calendar conversion between Gregorian date and Chinese Lunar date from 1645 to 2245 for 24 time zones using Astronomical Calendar or Civil Calendar. This sample program show how to utilize the solar Sector Points, solar Center Point and new moon data.
Conversion button performs the Chinese Lunar Calendar conversion
Five Element button displays the Stem and Branch for the selected date and time
Sundial button shows the Solar Time Correction Table
Printer button can print the screen
explanation button displays the Lunar and Solar data to verify the correct conversion between solar and lunar dates.
Stem and Branch Information
The Explanation of Chinese Calendar Conversion
Solar Time Correction Table
The True Solar Time Correction Table is the Equation of Time for
entire year. The True Solar Time is the
This is a reference data only. Chinese Lunar Calendar conversion doesn't apply the Sundial time into the conversion. But we have a bonus sample program of the Equation of Time in the CD.
The source program to find the zodiac for western astrology and the Easter Sunday, is the first Sunday after the full moon that occurs next after the Vernal Equinox. This sample program shows how to use the solar Center Points and full moon data.
The source program to calculate proximate the equation of time from selected date and time zone. This bonus program doesn't use Sun or Moon astronomical data. It's a handy program to adjust the true solar time.