Class SunriseSunset
java.lang.Object
org.deltava.util.SunriseSunset
A utility class to calculate sunrise and sunset times.
- Since:
- 7.4
- Version:
- 7.4
- Author:
- Luke
-
Method Summary
Modifier and TypeMethodDescriptionstatic ZonedDateTime
getSunrise
(GeoLocation loc, ZonedDateTime dt) Calculates sunrise time for a given location and date.static ZonedDateTime
getSunset
(GeoLocation loc, ZonedDateTime dt) Calculates sunset time for a given location and date.
-
Method Details
-
getSunrise
Calculates sunrise time for a given location and date.- Parameters:
loc
- the GeoLocationdt
- a ZonedDateTime- Returns:
- the zoned time of sunrise, or null if none
-
getSunset
Calculates sunset time for a given location and date.- Parameters:
loc
- the GeoLocationdt
- a ZonedDateTime- Returns:
- the zoned time of sunset, or null if none
-