Comments (9)
查了下百度的农历,返回的是农历六月初一,农历天数"表"可能有问题,如果确认有问题,那么至少有两个有问题,得空核对下
from calendar.js.
"1933-7-22,1933-7-23,1933-7-24,1933-7-25,1933-7-26,1933-7-27,1933-7-28,1933-7-29,1933-7-30,1933-7-31,1933-8-1,1933-8-2,1933-8-3,1933-8-4,1933-8-5,1933-8-6,1933-8-7,1933-8-8,1933-8-9,1933-8-10,1933-8-11,1933-8-12,1933-8-13,1933-8-14,1933-8-15,1933-8-16,1933-8-17,1933-8-18,1933-8-19,1933-8-20,2057-9-28,2057-9-29,2057-9-30,2057-10-1,2057-10-2,2057-10-3,2057-10-4,2057-10-5,2057-10-6,2057-10-7,2057-10-8,2057-10-9,2057-10-10,2057-10-11,2057-10-12,2057-10-13,2057-10-14,2057-10-15,2057-10-16,2057-10-17,2057-10-18,2057-10-19,2057-10-20,2057-10-21,2057-10-22,2057-10-23,2057-10-24,2057-10-25,2057-10-26,2057-10-27,2060-4-30,2060-5-1,2060-5-2,2060-5-3,2060-5-4,2060-5-5,2060-5-6,2060-5-7,2060-5-8,2060-5-9,2060-5-10,2060-5-11,2060-5-12,2060-5-13,2060-5-14,2060-5-15,2060-5-16,2060-5-17,2060-5-18,2060-5-19,2060-5-20,2060-5-21,2060-5-22,2060-5-23,2060-5-24,2060-5-25,2060-5-26,2060-5-27,2060-5-28,2060-5-29,"
from calendar.js.
我拿一java版本做对比,以上这些都对不上,具体那一边不对我没校验。
from calendar.js.
java项目
https://github.com/heqiao2010/LunarCalendar
from calendar.js.
不更新吗?
from calendar.js.
按香港天文台数据,1933年
0x06e95
得改为
0x16a95
即改动:
1933年 闰五月三十
1933年 六月廿九(没有三十)
百度应该也是按照这数据算的
至于2057年,香港天文台自己都说了:
“由于计算数十年后的月相及节气时间可能会有数分钟的误差,若新月(即农历初一)或节气时间很接近午夜零时,「对照表」内相关农历月份或节气的日期可能会有一日之差别。这些情况会出现在2057年9月28日、2089年9月4日及2097年8月7日的新月、2021年的冬至、2051年的春分、2083年的立春和2084年的春分。”
https://www.weather.gov.hk/sc/gts/time/conversion.htm
只有到那时才能确定这些年份农历是否有误。
from calendar.js.
接收PR,如果您知道怎么改,可以改了发PR,感谢
from calendar.js.
PR已发,修正1933/2060年;
2057年有争议(2057-9-28 手机上日历显示八月三十,微软日历显示九月初一),暂不做修改
from calendar.js.
PR link # #12
from calendar.js.
Related Issues (20)
- 大佬,我想显示每天是周几能在这个基础扩展吗? HOT 2
- 重复点击tab栏,日期会发生变化,请问怎样解决? HOT 1
- 传参问题 HOT 2
- 小程序怎么使用这个js? HOT 2
- 膜拜大佬 真牛逼 HOT 1
- 支持大佬,大佬牛掰 HOT 2
- 2021 6 7 HOT 2
- 这里可以优化一下吧,写的有点乱,一个for就能解决的事 HOT 1
- 发现两个问题,已经提交pr HOT 1
- 农历计算错误 HOT 1
- 如果腊月是农历小月,则腊月二十九应为除夕。 HOT 1
- 关于 getTerm HOT 1
- 建议生成一个NPM包 HOT 2
- 路過的
- 修改了节气显示的方式
- npm 包没有 export ,应该没办法被其他模块引用
- 可以加个休息日吗
- 不对啊
- 转换存在错误 HOT 1
- 公历和农历
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calendar.js.