Rename test and add credit
This commit is contained in:
parent
c670ba88bd
commit
3a7a1f8c69
2 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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
|
||||||
*/
|
*/
|
Loading…
Reference in a new issue