GithubHelp home page GithubHelp logo

c3h3 / chinesecalendar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ytliu0/chinesecalendar

0.0 1.0 0.0 41.17 MB

Conversion between the Western calendar and Chinese calendar

License: GNU General Public License v3.0

CSS 0.25% JavaScript 11.52% HTML 88.23%

chinesecalendar's Introduction

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

chinesecalendar's People

Contributors

ytliu0 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.