1 Star 1 Fork 0

oycocean / ChineseLunarCalendar

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

中国农历计算程序

本程序利用天文数据推算二十四节气以及中国农历历法。目前已完成节气推算和新月时间推算功能,误差均在1秒以内

计算节气时间可调用oyyq.calendar.util.SolarTermsCalculator.getJulianDayInYearForTermOrder(SolarTerms, int)计算得到。
计算新月时间可调用oyyq.calendar.util.NewMoonCalculator.getJulianDayInYearAndMonthForNewMoon(int, int)计算得到。
以上得到的时间是以地球时计算的儒略日,如需转换成实际时间,还需要转成UTC时间再转成日历时间。
可参考oyyq.calendar.util.CalendarUtil.fromJulianDate(double, TimeZone, boolean)函数以及oyyq.calendar.util.NewMoonCaculator.main(String[])的调用。

Comments ( 0 )

Sign in for post a comment

About

Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
1
https://git.oschina.net/oycocean/ChineseLunarCalendar.git
git@git.oschina.net:oycocean/ChineseLunarCalendar.git
oycocean
ChineseLunarCalendar
ChineseLunarCalendar
master

Search