Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
test1
Method · 0.95
test2
Method · 0.95
test3
Method · 0.95
test4
Method · 0.95
test5
Method · 0.95
test6
Method · 0.95
test7
Method · 0.95
test8
Method · 0.95
test9
Method · 0.95
getFirstDay
Method · 0.95
getWeekInChinese
Method · 0.95
getFestivals
Method · 0.95
Calls
1
getJulianDay
Method · 0.95
Tested by
9
test1
Method · 0.76
test2
Method · 0.76
test3
Method · 0.76
test4
Method · 0.76
test5
Method · 0.76
test6
Method · 0.76
test7
Method · 0.76
test8
Method · 0.76
test9
Method · 0.76