获取星座 @return 星座
()
| 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 | * 获取生肖 |
nothing calls this directly
no test coverage detected