Skip to content
Conversion between the Western calendar and Chinese calendar
HTML JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs corrected a mistake in the data in 665, added info on the leap month … Jun 7, 2019
24solarTermsChi.png initial commit Oct 24, 2018
24solarTermsEng.png initial commit Oct 24, 2018
24solarTermsSim.png Added simplified Chinese version May 26, 2019
3500Calendars_errors.html
3500Calendars_errors_simp.html
Dipper.jpg Major update: extended the years back to -721, added several new html… Apr 16, 2019
Dipper_chinese.jpg
Dipper_simp.jpg Added simplified Chinese version May 26, 2019
Julian.html added Julian date and sexagenary date calculator Jul 7, 2019
Julian.js
Julian_chinese.html
Julian_simp.html
LICENSE
LiaoJinYuan_calendars.html corrected a typo Sep 20, 2019
LiaoJinYuan_calendars_chinese.html
LiaoJinYuan_calendars_simp.html
MingCalendar.html corrected typos + minor changes Oct 11, 2019
MingCalendar_chinese.html minor changes Sep 6, 2019
MingCalendar_simp.html minor changes Sep 6, 2019
NianAvg1.png initial commit Oct 24, 2018
NianAvg2.png initial commit Oct 24, 2018
NorthSouth_calendars.html
NorthSouth_calendars_chinese.html corrected typos + minor changes Oct 11, 2019
NorthSouth_calendars_simp.html
QinHanCalendars.html minor changes Jun 13, 2019
QinHanCalendars_chinese.html corrected a typo Aug 17, 2019
QinHanCalendars_simp.html
QinHanConjTimeLag.jpg Major update: extended the years back to -721, added several new html… Apr 16, 2019
QinHanConjTimeLag_chinese.jpg Major update: extended the years back to -721, added several new html… Apr 16, 2019
QinHanConjTimeLag_simp.jpg
QinHanSolarTerms.html Added simplified Chinese version May 26, 2019
QinHanSolarTerms_chinese.html
QinHanSolarTerms_simp.html Added simplified Chinese version May 26, 2019
README.md added an article on conjunction calculation in the Ming dynasty Aug 13, 2019
Shangyuan.html corrected 7 dates based on the Ming imperial calendars in 1462, 1581,… Aug 10, 2019
Shangyuan_chinese.html corrected 7 dates based on the Ming imperial calendars in 1462, 1581,… Aug 10, 2019
Shangyuan_simp.html corrected 7 dates based on the Ming imperial calendars in 1462, 1581,… Aug 10, 2019
TDBtimes.txt initial commit Oct 24, 2018
TDBtimes_extended.txt.gz update data May 9, 2019
ThreeKingdoms_calendars.html
ThreeKingdoms_calendars_chinese.html
ThreeKingdoms_calendars_simp.html
YueAvg.png initial commit Oct 24, 2018
ancientCalendars.js major update: added calendar data in several additional dynasties in … Jun 29, 2019
calendar.css
calendar.js corrected typos + minor changes Oct 11, 2019
calendarChiLegend.png
calendarData.js
calendarEngLegend.png updated the calendar legend files Apr 23, 2019
calendarSimLegend.png
calendar_chinese.css
chunqiu.html
chunqiu_chinese.html minor changes Jun 13, 2019
chunqiu_simp.html minor changes Jun 13, 2019
computation.html corrected typos + minor changes Oct 11, 2019
computation_chinese.html corrected typos + minor changes Oct 11, 2019
computation_simp.html
direction_branch.png Major update: extended the years back to -721, added several new html… Apr 16, 2019
direction_branch_chinese.png
direction_branch_simp.png
discrepanciesQing.html corrected typos + minor changes Oct 11, 2019
discrepanciesQing_chinese.html minor changes Jul 21, 2019
discrepanciesQing_simp.html minor changes Jul 21, 2019
era_names.html
era_names_simp.html minor updates Jul 9, 2019
eras.js corrected typos Jul 1, 2019
examples.html Added simplified Chinese version May 26, 2019
examples_chinese.html Added simplified Chinese version May 26, 2019
examples_simp.html Added simplified Chinese version May 26, 2019
google26f883706faeb272.html initial commit Oct 25, 2018
guliuli.html added an article on Shangyuan + minor update Jul 28, 2019
guliuliConjTimeDiff1.jpg
guliuliConjTimeDiff1_chinese.jpg added a figure and discussion about the time difference between calen… Apr 23, 2019
guliuliConjTimeDiff1_simp.jpg Added simplified Chinese version May 26, 2019
guliuliConjTimeDiff2.jpg added a figure and discussion about the time difference between calen… Apr 23, 2019
guliuliConjTimeDiff2_chinese.jpg
guliuliConjTimeDiff2_simp.jpg Added simplified Chinese version May 26, 2019
guliuli_chinese.html added an article on Shangyuan + minor update Jul 28, 2019
guliuli_simp.html added an article on Shangyuan + minor update Jul 28, 2019
header.js 中文版對照表網頁改用帝王年號紀年並附加朔日干支,更名朔閏表。 Jun 15, 2019
index.html
index_chinese.html
index_simp.html added Julian date and sexagenary date calculator Jul 7, 2019
rules.html corrected typos + minor changes Oct 11, 2019
rules_chinese.html corrected typos + minor changes Oct 11, 2019
rules_demysterified.html
rules_demysterified_chinese.html added an article on Shangyuan + minor update Jul 28, 2019
rules_demysterified_simp.html
rules_simp.html corrected typos + minor changes Oct 11, 2019
sexagenary.html added an article on Shangyuan + minor update Jul 28, 2019
sexagenary_chinese.html added an article on Shangyuan + minor update Jul 28, 2019
sexagenary_simp.html
solarTerms.html Added simplified Chinese version May 26, 2019
solarTerms_chinese.html Added simplified Chinese version May 26, 2019
solarTerms_simp.html Added simplified Chinese version May 26, 2019
split.js
sunMoon.html minor changes Jun 2, 2019
sunMoon.js
sunMoonData.js update data May 9, 2019
sunMoon_chinese.html
sunMoon_simp.html added an article on Shangyuan + minor update Jul 28, 2019
table.html
table.js
table_chinese.html major update: added calendar data in several additional dynasties in … Jun 29, 2019
table_simp.html corrected a mistake in data file in 1001 + a small typo Jul 16, 2019

README.md

Conversion between Western and Chinese Calendar (722 B.C. - 2200 A.D.)

公 曆 和 農 曆 日 期 對 照 (公元前722年- 公元2200年)

This package contains HTML files, javascript files, and pdf documentation.

The main page uses my calculated calendar data to convert between the Western calendar and Chinese calendar for any year between 722 B.C. and 2200 A.D. The other pages are linked at the top of the main page. They are self-explanatory.

Files:

Almost all of the following HTML files have English, traditional Chinese and simplified Chinese versions. They have the same names but with _chinese and _simp as suffixes.

  • index.html: main HTML page showing the conversion between the Western calendar and Chinese calendar for any year between 722 B.C. and 2200 A.D.
  • table.html: HTML page showing a conversion table between the two calendars.
  • solarTerms.html: HTML page explaining the 24 solar terms.
  • sexagenary.html: HTML page explaining the sexagenary cycle.
  • rules.html: HTML page explaining the rules for the Chinese calendar.
  • examples.html: HTML page demonstrating the computation of Chinese calendar. There is also a discussion about the exceptional year 2033.
  • rules_demysterified.html: HTML page explaining how the rules of the Chinese calendar manage to keep both the lunar cycle and cycle of seasons in sync with the calendar. There is also a discussion on the 19-year cycle and the average length of a year and a month in the Chinese calendar.
  • computation.html: documentation of the calendar calculation used here.
  • sunMoon.html: Times of Moon phases and 24 solar terms from -3500 to 3500.
  • Julian.html: Web-based Julian and Sexagenary Date Calculator
  • era_names.html/era_names_simp.html: Era/reign names used in the Chinese history (in Chinese).
  • era.js: javascript file for displaying the era/reign names in index_chinese.html
  • chunqiu.html: documentation -- Reconstruction of the Chunqiu Calendar
  • guliuli.html: documentation -- Computation of the Ancient Six Calendars
  • QinHanCalendars.html: documentation -- Reconstruction of Calendars in the Qin and Early Han Dynasties
  • QinHanSolarTerms.html: Dates of Selected Solar Terms in Qin and Early Han Dynasties
  • MingCalendar.html: research article -- Lunar Conjunction Calculation in the Ming Dynasty and Corrections to the Ming Calendar Data
  • discrepanciesQing.html: Discrepancies Between Modern Calculation and Historical Data (1645 - 1911)
  • 3500Calendars_errors.html/3500Calendars_errors_simp.html: Errors in the book 3500 Years of Calendars and Astronomical Phenomena (in Chinese)
  • Shangyuan.html: An article on the Shangyuan system in ancient Chinese Astronomical Systems
  • calendar.css: CSS file for the HTML pages mentioned above.
  • calendar_chinese.css: CSS file for the Chinese versions of the HTML pages mentioned above.
  • header.js: JavaScript file for creating the header in all HTML pages, including the Chinese version of the HTML pages.
  • calendarData.js: contains data used for conversion between the Western calendar and Chinese calendar, dates and times of the moon phases and 24 solar terms between -721 and 2200. I computed these data and put them into JSON format. This file is used by index.html, table.html and the Chinese version of these two files.
  • calendar.js: JavaScript file for handling the activities on index.html, index_chinese and index_simp.html.
  • table.js: JavaScript file for handling the activities on table.html, table_chinese.html and table_simp.html.
  • split.js: JavaScript file for handling calendars in 221-280, 384-589 and 947-1279.
  • ancientCalendars.js: contain functions that handle the calendars before 104 B.C.
  • sunMoonData.js: Dates and times of moon phases and solar terms from -3501 to 3502 in JSON.
  • sunMoon.js: JavaScript file for handling the activities on sunMoon.html, sunMoon_chinese.html and sunMoon_simp.html
  • Julian.js: JavaScript file for handling the activities Julian.html, Julian_chinese.html and Julian_simp.html
  • calendarEngLegend.png/calendarChiLegend.png/calendarSimLegend.png: image file used by index.html/index_chinese.html/index_simp.html.
  • 24solarTermsEng.png/24solarTermsChi.png/24solarTermsSim.png: image file used by solarTerms.html/solarTerms_chinese.html/solarTerms_simp.html.
  • NianAvg1.png, NianAvg2.png, YueAvg.png: image files used by rules_demysterified.html, rules_demysterified_chinese.html and rules_demysterified_simp.html.
  • Dipper.jpg, Dipper_chinese.jpg, Dipper_simp.jpg, direction_branch.png, direction_branch_chinese.png, direction_branch_simp.png: image files used by sexagenary.html, sexagenary_chinese.html and sexagenary_simp.html
  • QinHanConjTimeLag.jpg, QinHanConjTimeLag_chinese.jpg, QinHanConjTimeLag_simp.jpg: image files used by QinHanCalendars.html, QinHanCalendars_chinese.html and QinHanCalendars_simp.html
  • TDBtimes.txt: TDB times of moon phases and 24 solar terms between 1600 and 3500 calculated from JPL ephemeris DE431 and using the IAU 2006/2000A precession-nutation model.
  • TDBtimes_extended.txt.gz: (gzipped) TDB times of moon phases and 24 solar terms between -4000 and 8000 calculated from JPL ephemeris DE431 and using the Vondrak et al 2011 precession model and IAU2000A nutation model.
  • docs/sunMoon.pdf: PDF file explaining how I compute the times of the moon phases and 24 solar terms used for the calendar calculation.
  • docs/sunMoon_chinese.pdf: traditional Chinese version of docs/sunMoon.pdf
  • docs/sunMoon_simp.pdf: simplified Chinese version of docs/sunMoon.pdf
You can’t perform that action at this time.