(Moment moment)
| 295 | * @see JulianDay#MAX |
| 296 | */ |
| 297 | public static SolarTerm of(Moment moment) { |
| 298 | |
| 299 | double jde = JulianDay.ofEphemerisTime(moment).getValue(); |
| 300 | int angleIndex = (int) Math.floor(solarLongitude(jde) / 15); |
| 301 | return ENUMS[(angleIndex + 3) % 24]; |
| 302 | |
| 303 | } |
| 304 | |
| 305 | /** |
| 306 | * <p>Obtains the associated index according to the traditional order in the Chinese calendar. </p> |
no test coverage detected