mirror of https://github.com/captn3m0/suntime.git
Version Bump (1.0.0)
This commit is contained in:
parent
b3e27035e8
commit
3e9ddb89f2
|
@ -1,6 +1,6 @@
|
|||
# suntime
|
||||
|
||||
Crystal library for calculating sunrise and sunset times. Uses the algorithm from <http://www.edwilliams.org/sunrise_sunset_algorithm.htm>.
|
||||
Crystal library for calculating sunrise and sunset times. Uses the algorithm from <https://www.esrl.noaa.gov/gmd/grad/solcalc/solareqns.PDF>
|
||||
|
||||
## Installation
|
||||
|
||||
|
@ -30,6 +30,8 @@ s.sunset
|
|||
# 2020-05-22 18:39:43.0 +05:30 Local
|
||||
```
|
||||
|
||||
You can pass in a different time. The date is used for calculating the sunrise/sunset, and the timezone is used for return formatting.
|
||||
|
||||
## TODO
|
||||
|
||||
- [ ] Implement the Atmospheric Refraction Effect calculation
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: suntime
|
||||
version: 0.1.0
|
||||
version: 1.0.0
|
||||
description: A crystal shard to calculate sunrise and sunset times across the world.
|
||||
|
||||
authors:
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
# TODO: Write documentation for `Suntime`
|
||||
module Suntime
|
||||
VERSION = "0.1.0"
|
||||
VERSION = "1.0.0"
|
||||
|
||||
# Currently based on http://www.edwilliams.org/sunrise_sunset_algorithm.htm
|
||||
# TODO: Switch to https://www.esrl.noaa.gov/gmd/grad/solcalc/solareqns.PDF
|
||||
# to use radians directly
|
||||
class Suntime
|
||||
@lng : Float64
|
||||
@lat : Float64
|
||||
|
|
Loading…
Reference in New Issue