MCPcopy Create free account
hub / github.com/SeanDragon/protools / toZodiac

Method toZodiac

common/src/main/java/pro/tools/time/DatePlus.java:489–495  ·  view source on GitHub ↗

获取星座 @return 星座

()

Source from the content-addressed store, hash-verified

487 * @return 星座
488 */
489 public String toZodiac() {
490 int month = getMonth();
491 int day = getDayOfMonth();
492 return ZODIAC[day >= ZODIAC_FLAGS[month - 1]
493 ? month - 1
494 : (month + 10) % 12];
495 }
496
497 /**
498 * 获取生肖

Callers

nothing calls this directly

Calls 2

getMonthMethod · 0.95
getDayOfMonthMethod · 0.95

Tested by

no test coverage detected