<!-- This file was generated by scripts/template. Do not edit this file directly but
instead have a look at: metainfo.json, templates/README.md.j2. -->
The SunCalc module allows to calculate sun position, sunlight phases (times for sunrise, sunset, dusk, etc.), moon position and lunar phase for the given location and time.
Most calculations are based on the formulas given in the excellent Astronomy Answers articles about position of the sun and the planets. You can read about different twilight phases calculated by SunCalc in the Twilight article on Wikipedia.
Refer to the API documentation for details.
Install the library for your favorite language by executing one of the following commands:
- Java (native port repository)
- PHP (target build repository)
- Python (native port repository)
Supported languages/platforms not generated by Haxe
The following limitations seems to be related which should mean that when they are fixed for one target, the tests for the other targets should also pass. If you need
SunCalc.getMoonTimes for one of those targets, feel free to debug it further.
risedate can not be calculated.).
- ActionScript 3: Does compile but I have no idea how to test it.
- Flash: Does compile but I have no idea how to test it.
- C#: Dependency
datetimedoes not compile on target "datetime/3,0,2/src/datetime/DateTime.hx:146: characters 28-110 : haxe.Int64 should be Float"