1
0
mirror of synced 2026-04-16 21:38:40 +08:00

Compare commits

..

1 Commits

Author SHA1 Message Date
6tail
5b0ed30657 v1.6.2 优化多语言支持。 2023-05-03 21:10:05 +08:00
3 changed files with 324 additions and 107 deletions

View File

@@ -181,3 +181,11 @@ test('test11', () => {
test('test12', () => {
expect(Solar.fromYmdHms('1999', '06', '07', '09', '11', '00').getLunar().getEightChar().toString()).toBe('己卯 庚午 庚寅 辛巳');
});
test('流月', () => {
const solar = Solar.fromYmdHms(2023, 5, 3, 9, 0, 0);
const lunar = solar.getLunar();
const eightChar = lunar.getEightChar();
const yun = eightChar.getYun(1);
expect(yun.getDaYun()[0].getLiuNian()[0].getLiuYue()[0].getGanZhi()).toBe('甲寅');
});

421
lunar.js

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "lunar-javascript",
"version": "1.6.1",
"version": "1.6.2",
"description": "lunar is a calendar library for Solar and Chinese Lunar.",
"main": "index.js",
"scripts": {