MCPcopy Create free account
hub / github.com/6tail/lunar-java / getQi

Method getQi

src/main/java/com/nlf/calendar/Lunar.java:857–866  ·  view source on GitHub ↗

获取气令 @return 气令

()

Source from the content-addressed store, hash-verified

855 * @return 气令
856 */
857 public String getQi() {
858 for (int i = 1, j = JIE_QI_IN_USE.length; i < j; i += 2) {
859 String key = JIE_QI_IN_USE[i];
860 Solar d = jieQi.get(key);
861 if (d.getYear() == solar.getYear() && d.getMonth() == solar.getMonth() && d.getDay() == solar.getDay()) {
862 return convertJieQi(key);
863 }
864 }
865 return "";
866 }
867
868 /**
869 * 获取星期,0代表周日,1代表周一

Callers 3

testMethod · 0.95
testMethod · 0.95
test9Method · 0.80

Calls 7

getYearMethod · 0.95
getMonthMethod · 0.95
getDayMethod · 0.95
convertJieQiMethod · 0.95
getYearMethod · 0.45
getMonthMethod · 0.45
getDayMethod · 0.45

Tested by 3

testMethod · 0.76
testMethod · 0.76
test9Method · 0.64