getUTCSunset

abstract fun getUTCSunset(LocalDate: LocalDate, geoLocation: GeoLocation, zenith: Double, adjustForElevation: Boolean): Double

A method that calculates UTC sunset as well as any time based on an angle above or below sunset. This abstract method is implemented by the classes that extend this class.

Return

The UTC time of sunset in 24 hour format. 5:45:00 AM will return 5.75.0. If an error was encountered in the calculation (expected behavior for some locations such as near the poles, Double.NaN will be returned.

Parameters

LocalDate

Used to calculate day of year.

geoLocation

The location information used for astronomical calculating sun times.

zenith

the azimuth below the vertical zenith of 90. For sunset typically the zenith used for the calculation uses geometric zenith of 90 and .adjustZenith this slightly to account for solar refraction and the sun's radius. Another example would be com.kosherjava.zmanim.AstronomicalCalendar.getEndNauticalTwilight that passes com.kosherjava.zmanim.AstronomicalCalendar.NAUTICAL_ZENITH to this method.

adjustForElevation

Should the time be adjusted for elevation

See also

.getElevationAdjustment