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

Method getWeek

src/main/java/com/nlf/calendar/Solar.java:390–392  ·  view source on GitHub ↗

获取星期,0代表周日,1代表周一 @return 0123456

()

Source from the content-addressed store, hash-verified

388 * @return 0123456
389 */
390 public int getWeek() {
391 return ((int) (getJulianDay() + 0.5) + 7000001) % 7;
392 }
393
394 /**
395 * 获取星期的中文

Callers 14

test1Method · 0.95
test2Method · 0.95
test3Method · 0.95
test4Method · 0.95
test5Method · 0.95
test6Method · 0.95
test7Method · 0.95
test8Method · 0.95
test9Method · 0.95
getFirstDayMethod · 0.95
getWeekInChineseMethod · 0.95
getFestivalsMethod · 0.95

Calls 1

getJulianDayMethod · 0.95

Tested by 9

test1Method · 0.76
test2Method · 0.76
test3Method · 0.76
test4Method · 0.76
test5Method · 0.76
test6Method · 0.76
test7Method · 0.76
test8Method · 0.76
test9Method · 0.76