Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Here's a class for calculating an approximate time of the sunset, sunrise and day length on a given date, on a given location (latitude coordinate). It takes into account leap years and daylight saving time offset.
It's accurate to about 20 minutes (compared to results from WolframAlpha).

Also, because the constructor Date(int year, int month, int day) is marked as deprecated, GregorianCalendar class is used instead.

Main article:
http://dev.kafol.net/2012/09/java-calculating-approximate-sunset-and.html

About

Calculate sunset and sunrise on a given day on a given location

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages