新增时辰冲煞、时辰宜忌
This commit is contained in:
18
lunar.js
18
lunar.js
@@ -1626,6 +1626,9 @@
|
||||
}
|
||||
index = right.indexOf(day+'=');
|
||||
}
|
||||
if(l.length<1){
|
||||
l.push('无');
|
||||
}
|
||||
return l;
|
||||
},
|
||||
getDayJi:function(monthGanZhi,dayGanZhi){
|
||||
@@ -1660,6 +1663,9 @@
|
||||
}
|
||||
index = right.indexOf(day+'=');
|
||||
}
|
||||
if(l.length<1){
|
||||
l.push('无');
|
||||
}
|
||||
return l;
|
||||
},
|
||||
getDayJiShen:function(lunarMonth,dayGanZhi){
|
||||
@@ -1678,6 +1684,9 @@
|
||||
l.push(this.SHEN_SHA[parseInt(m, 16)]);
|
||||
}
|
||||
}
|
||||
if(l.length<1){
|
||||
l.push('无');
|
||||
}
|
||||
return l;
|
||||
},
|
||||
getDayXiongSha:function(lunarMonth,dayGanZhi){
|
||||
@@ -1696,6 +1705,9 @@
|
||||
l.push(this.SHEN_SHA[parseInt(m, 16)]);
|
||||
}
|
||||
}
|
||||
if(l.length<1){
|
||||
l.push('无');
|
||||
}
|
||||
return l;
|
||||
},
|
||||
getTimeYi:function(dayGanZhi,timeGanZhi){
|
||||
@@ -1714,6 +1726,9 @@
|
||||
l.push(this.YI_JI[parseInt(m, 16)]);
|
||||
}
|
||||
}
|
||||
if(l.length<1){
|
||||
l.push('无');
|
||||
}
|
||||
return l;
|
||||
},
|
||||
getTimeJi:function(dayGanZhi,timeGanZhi){
|
||||
@@ -1732,6 +1747,9 @@
|
||||
l.push(this.YI_JI[parseInt(m, 16)]);
|
||||
}
|
||||
}
|
||||
if(l.length<1){
|
||||
l.push('无');
|
||||
}
|
||||
return l;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "lunar-javascript",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"description": "lunar is a calendar library for Solar and Chinese Lunar.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user