Skip to content

Commit

Permalink
calculator
Browse files Browse the repository at this point in the history
implements `getSunriseCalendarForDate` for the ca.rmen.sunrisesunset calculator
  • Loading branch information
forrestguice committed Nov 28, 2024
1 parent f8854f8 commit 197f704
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,12 @@ public long getTropicalYearLength(Calendar date) {

@Override
public Calendar getSunriseCalendarForDate( Calendar date, double angle ) {
return null; // TODO: supported by this lib?
return SunriseSunset.getSunriseSunset(date, location.getLatitudeAsDouble(), location.getLongitudeAsDouble(), angle)[0];
}

@Override
public Calendar getSunsetCalendarForDate( Calendar date, double angle ) {
return null; // TODO: supported by this lib?
return SunriseSunset.getSunriseSunset(date, location.getLatitudeAsDouble(), location.getLongitudeAsDouble(), angle)[1];
}

}
Expand Down

0 comments on commit 197f704

Please sign in to comment.