Go to file
Nemo 8531377d9c Initial commit 2020-05-22 19:56:49 +05:30
spec Initial commit 2020-05-22 19:56:49 +05:30
src Initial commit 2020-05-22 19:56:49 +05:30
.editorconfig Initial commit 2020-05-22 19:56:49 +05:30
.gitignore Initial commit 2020-05-22 19:56:49 +05:30
.travis.yml Initial commit 2020-05-22 19:56:49 +05:30
LICENSE Initial commit 2020-05-22 19:56:49 +05:30
README.md Initial commit 2020-05-22 19:56:49 +05:30
shard.yml Initial commit 2020-05-22 19:56:49 +05:30

README.md

suntime

Crystal library for calculating sunrise and sunset times. Uses the algorithm from http://www.edwilliams.org/sunrise_sunset_algorithm.htm.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      suntime:
        github: captn3m0/suntime
    
  2. 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

  1. Fork it (https://github.com/captn3m0/suntime/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • Nemo - creator and maintainer

License

Licensed under the MIT License. See LICENSE file for details.