Sun and Moon Astronomical Data for Programming
Before looking for our data format, we want to compare the Sun and Moon data with the book of The American Ephemeris for the 21st Century 2001 to 2050 at midnight by Neil F. Michelsen, a calendar bible for western astrology. The difference of two astronomical data should be within 1 minute, because some data without seconds. You will have strong confidence using our data.
Sun and Moon Data
|American Ephemeris September/October 2003|
New Moon at 9/26 3:10 and 4/25 12:51
2003/01/02 20:23:00 N
The Sun and Moon Astronomical raw data is calculated by Universal Time (UT), a.k.a. Greenwich Mean Time (GMT). click for FAQ. We provide Visual Basic (VB) Programs with source codes to convert the data from UT to different time zones.
The following are sample data for your reference.
Mix Sun and New Moon Data
The VB program combines Sun and Moon Data in the Chinese Astronomical and Civil Calendar sequences from Different time zones.
The VB program calculates the Chinese Astronomical and Civil Lunar Months from Different time zones.
Lunar Leap Months
The VB program lists Chinese Astronomical and Civil Lunar Leap Months with Double-Center-Point months from Different time zones. It also indicates the Fake Leap Months.
Another VB program compares the discrepancy about the assignment of Lunar Leap Months from different time zones.
There is no difference in the Lunar Month assignments of Astronomical Calendars from any two different time zone.
Final Data in MS Access Database for Chinese Calendar
Final Sun Data
|Simple Sun Table (SunKey)||Sun Table with Date (T01)|
|Julian Day . Hour . Minute||Julian Day . Year . Month . Day . Hour . Minute|
Final Moon Table
|New Moon, Lunar Month, Leap Month Data (T02)|
|Julian Day . Lunar Month No . Leap Month . Hour. Minute . Civil Lunar Month . Civil Leap Month No|
You can import the Sun and Moon data into Access, SQL, Oracle, MySQL, Sybase, or FoxPro database for your application. If you want to manipulate data in different format, then you can reformat the Sun and Moon raw data and sort the data sequence you want before loading into your database.
We provide some Visual Basic sample programs to work with the Sun and Moon data stored in the Microsoft Access Database.