From 006cbfe7bc832bd85ccd291e035f6e0068293c72 Mon Sep 17 00:00:00 2001 From: blestland <8131114+blestland@user.noreply.gitee.com> Date: Tue, 21 Dec 2021 13:09:31 +0800 Subject: [PATCH] =?UTF-8?q?V1.2.17.002=20=E9=81=93=E5=8E=86=E4=B8=AD?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=88=A4=E6=96=AD=E6=88=8A=E6=97=A5=E7=9A=84?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lunar.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/lunar.js b/lunar.js index 7807492..dbc6e20 100644 --- a/lunar.js +++ b/lunar.js @@ -3960,7 +3960,21 @@ '12-23': [_f('祭灶王', '最适宜谢旧年太岁,开启拜新年太岁')], '12-25': [_f('玉帝巡天'), _f('天神下降')], '12-29': [_f('清静孙真君(孙不二)成道')] - } + }, + AN_WU:{ + '1':'未', + '2':'戌', + '3':'辰', + '4':'寅', + '5':'午', + '6':'子', + '7':'酉', + '8':'申', + '9':'巳', + '10':'亥', + '11':'卯', + '12':'丑' + } } })(); var Tao = (function(){ @@ -4025,6 +4039,13 @@ isDayBaJie:function(){return !!TaoUtil.BA_JIE[this._p.lunar.getJieQi()];}, isDayWuLa:function(){return this._isDayIn(TaoUtil.WU_LA);}, isDayBaHui:function(){return !!TaoUtil.BA_HUI[this._p.lunar.getDayInGanZhi()];}, + isDayMingWuRi:function(){return (this._p.lunar.getDayGan() === '戊');}, + isDayAnWuRi:function(){ + var dayZhi = this._p.lunar.getDayZhi(); + var yueFen = Math.abs(this._p.lunar.getMonth()); + return (dayZhi === TaoUtil.AN_WU[yueFen]); + }, + isDayWuRi:function(){return this.isDayMingWuRi() || this.isDayAnWuRi();}, toString:function(){ return this.getYearInChinese()+'年'+this.getMonthInChinese()+'月'+this.getDayInChinese(); }, -- Gitee