v1.7.5 修复候的错别字;更新△T参数;优化吉神宜驱、凶神宜忌。
This commit is contained in:
@@ -32,3 +32,8 @@
|
|||||||
|
|
||||||
## [1.7.4] - 2025-09-07
|
## [1.7.4] - 2025-09-07
|
||||||
1. 修复极端情况下八字转公历时刻出现遗漏的问题。
|
1. 修复极端情况下八字转公历时刻出现遗漏的问题。
|
||||||
|
|
||||||
|
## [1.7.5] - 2025-10-01
|
||||||
|
1. 修复:候的错别字。
|
||||||
|
2. 优化:更新△T参数。
|
||||||
|
3. 优化:吉神宜驱、凶神宜忌。
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ test('test7', () => {
|
|||||||
|
|
||||||
test('test8', () => {
|
test('test8', () => {
|
||||||
const lunar = Lunar.fromYmd(2050, 12, 1);
|
const lunar = Lunar.fromYmd(2050, 12, 1);
|
||||||
expect(lunar.getJieQiTable()['DA_XUE'].toYmdHms()).toBe('2050-12-07 06:40:53');
|
expect(lunar.getJieQiTable()['DA_XUE'].toYmdHms()).toBe('2050-12-07 06:41:54');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('test9', () => {
|
test('test9', () => {
|
||||||
@@ -106,7 +106,7 @@ test('test9', () => {
|
|||||||
|
|
||||||
test('test10', () => {
|
test('test10', () => {
|
||||||
const lunar = Lunar.fromYmd(2023, 6, 1);
|
const lunar = Lunar.fromYmd(2023, 6, 1);
|
||||||
expect(lunar.getJieQiTable()['冬至'].toYmdHms()).toBe('2022-12-22 05:48:01');
|
expect(lunar.getJieQiTable()['冬至'].toYmdHms()).toBe('2022-12-22 05:48:12');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('test11', () => {
|
test('test11', () => {
|
||||||
|
|||||||
@@ -668,3 +668,9 @@ test('test073', () => {
|
|||||||
const solar = Lunar.fromYmd(2024, 10, 10).getSolar();
|
const solar = Lunar.fromYmd(2024, 10, 10).getSolar();
|
||||||
expect(solar.toString()).toBe('2024-11-10');
|
expect(solar.toString()).toBe('2024-11-10');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('test100', () => {
|
||||||
|
const lunar = Solar.fromYmd(2025, 9, 16).getLunar();
|
||||||
|
expect(lunar.getDayJiShen().toString()).toBe('时德,阳德,民日,玉宇,司命');
|
||||||
|
expect(lunar.getDayXiongSha().toString()).toBe('河魁,死神,天吏,致死,往亡');
|
||||||
|
});
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lunar-javascript",
|
"name": "lunar-javascript",
|
||||||
"version": "1.7.4",
|
"version": "1.7.5",
|
||||||
"description": "lunar是一款无第三方依赖的公历(阳历)、农历(阴历、老黄历)、佛历和道历工具,支持星座、儒略日、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋、凶煞宜忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道日及吉凶等。lunar is a calendar library for Solar and Chinese Lunar.",
|
"description": "lunar是一款无第三方依赖的公历(阳历)、农历(阴历、老黄历)、佛历和道历工具,支持星座、儒略日、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋、凶煞宜忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道日及吉凶等。lunar is a calendar library for Solar and Chinese Lunar.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user