{"repo":"shred/commons-suncalc","free":true,"listed":false,"github":"https://github.com/shred/commons-suncalc","clone":"git clone https://github.com/shred/commons-suncalc.git","description":"Calculate sun and moon times in Java","language":"Java","stars":157,"topics":["sun-position","moon-phase","android-library","java-library","mirrored-from-codefloe"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"commons-suncalc A Java library for calculation of sun and moon positions and phases. Features Lightweight, only requires Java 8 or higher, no other dependencies Android compatible, requires API level 26 (Android 8.0 \"Oreo\") or higher. For older Android versions, use commons-suncalc v2, which is similar to this version, but does not use the Java Date/Time API. Available at Maven Central Extensive unit tests Accuracy Astronomical calculations are far more complex than throwing a few numbers into an obscure formula and then getting a fully accurate result. There is always a tradeoff between accuracy and computing time. This library has its focus on getting acceptable results at low cost, so it can also run on mobile devices, or devices with a low computing power. The results have an accuracy of about a minute, which should be good enough for common applications (like sunrise/sunset timers), but is probably not sufficient for astronomical purposes. If you are looking for the highest possible accuracy, you are looking for a different library. Quick Start This library consists of a few models, all of them are invoked the same way: Read the online documentation for examples and API details. See the migration guide for how to migrate from a previous version. References This library bases on: \"Astronomy on the Personal Computer\", 4th edition, by Oliver Montenbruck and Thomas Pfleger \"Astronomical Algorithms\" by Jean Meeus Contribute Fork the Source code at Codeberg. Feel free to send ","default_branch":null,"files":null,"tree":[],"storefront":"/r/shred","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shred/commons-suncalc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}