Rename test and add credit

This commit is contained in:
Minecon724 2024-09-24 18:38:22 +02:00
parent c670ba88bd
commit 3a7a1f8c69
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
2 changed files with 6 additions and 1 deletions

View file

@ -8,6 +8,11 @@ import java.time.LocalDate;
import static java.lang.Math.*; import static java.lang.Math.*;
/**
* Calculates approximate sunrise and sunset times
* Usually off by a few minutes, except the Poles which, during polar days, are up to few hours inaccurate
* Adapted from: <a href="https://gml.noaa.gov/grad/solcalc/solareqns.PDF">https://gml.noaa.gov/grad/solcalc/solareqns.PDF</a>
*/
public class SimpleTwilightTimeProvider extends TwilightTimeProvider { public class SimpleTwilightTimeProvider extends TwilightTimeProvider {
@Override @Override
public Twilight calculateTwilightTime(LocalDate date, Coordinates coordinates) { public Twilight calculateTwilightTime(LocalDate date, Coordinates coordinates) {

View file

@ -8,7 +8,7 @@ import org.junit.Test;
import java.time.LocalDate; import java.time.LocalDate;
public class ApproximateTwilightTimeTest { public class SimpleTwilightTimeTest {
/** /**
* Acceptable discrepancy in minutes * Acceptable discrepancy in minutes
*/ */