1
0
mirror of synced 2026-04-16 13:28:39 +08:00

Compare commits

..

2 Commits

Author SHA1 Message Date
6tail
5b0ed30657 v1.6.2 优化多语言支持。 2023-05-03 21:10:05 +08:00
6tail
e9e23ee38f v1.6.1 优化多语言支持。 2023-04-26 21:38:51 +08:00
4 changed files with 1591 additions and 290 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('甲寅');
});

View File

@@ -1,4 +1,4 @@
const {Solar, Lunar, Foto, Tao, NineStar, EightChar, SolarWeek, SolarMonth, SolarSeason, SolarHalfYear, SolarYear, LunarMonth, LunarYear, LunarTime, ShouXingUtil, SolarUtil, LunarUtil, FotoUtil, TaoUtil, HolidayUtil, I18n} = require('./lunar.js')
const {Solar, Lunar, Foto, Tao, NineStar, EightChar, SolarWeek, SolarMonth, SolarSeason, SolarHalfYear, SolarYear, LunarMonth, LunarYear, LunarTime, ShouXingUtil, SolarUtil, LunarUtil, FotoUtil, TaoUtil, HolidayUtil, NineStarUtil, I18n} = require('./lunar.js')
module.exports = {
Solar: Solar,
@@ -21,5 +21,6 @@ module.exports = {
FotoUtil: FotoUtil,
TaoUtil: TaoUtil,
HolidayUtil: HolidayUtil,
NineStarUtil: NineStarUtil,
I18n: I18n
}

1868
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.0",
"version": "1.6.2",
"description": "lunar is a calendar library for Solar and Chinese Lunar.",
"main": "index.js",
"scripts": {