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 |
N - New Moon |
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). 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.
Moon
Sun
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.
Lunar Months
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 |
20000060338 |
2000006076309200338 2000021076310050527 2000036076310200409 2000051076311040031 2000065076311181850 2000080076312031209 2000095076312180455 2000109076401012217 2000124076401161643 2000139076401311316 2000154076402151211 |
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 |
200002707630900145807630900 200005707631000013307631000 200008607631100141007631100 200011607631200044307631200 200014507640100203907640100 200017507640200131307640200 200020507640300054407640300 200023407640400213307640400 200026407640500120107640500 200029407640600004507640600 200032307640700114507640700 200035207640800213407640800 |
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.