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

Method computeTime

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

计算干支纪时

()

Source from the content-addressed store, hash-verified

380 * 计算干支纪时
381 */
382 private void computeTime() {
383 String hm = (hour < 10 ? "0" : "") + hour + ":" + (minute < 10 ? "0" : "") + minute;
384 timeZhiIndex = LunarUtil.getTimeZhiIndex(hm);
385 timeGanIndex = (dayGanIndexExact % 5 * 2 + timeZhiIndex) % 10;
386 }
387
388 /**
389 * 计算星期

Callers 1

computeMethod · 0.95

Calls 1

getTimeZhiIndexMethod · 0.95

Tested by

no test coverage detected