mirror of
https://github.com/captn3m0/suntime.git
synced 2024-09-07 22:46:31 +00:00
975 B
975 B
suntime
Crystal library for calculating sunrise and sunset times. Uses the algorithm from http://www.edwilliams.org/sunrise_sunset_algorithm.htm.
Installation
-
Add the dependency to your
shard.yml
:dependencies: suntime: github: captn3m0/suntime
-
Run
shards install
Usage
require "suntime"
# Time is optional, local time is used otherwise
Suntime.new(lat,long, time)
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/captn3m0/suntime/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Nemo - creator and maintainer
License
Licensed under the MIT License. See LICENSE file for details.