From 3e9ddb89f2bf2e9c4365628b1badf7e91a890260 Mon Sep 17 00:00:00 2001 From: Nemo Date: Sat, 23 May 2020 16:53:40 +0530 Subject: [PATCH] Version Bump (1.0.0) --- README.md | 4 +++- shard.yml | 2 +- src/suntime.cr | 5 +---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 845a8ea..17f7c23 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # suntime -Crystal library for calculating sunrise and sunset times. Uses the algorithm from . +Crystal library for calculating sunrise and sunset times. Uses the algorithm from ## 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 diff --git a/shard.yml b/shard.yml index 25cd3ed..d3909de 100644 --- a/shard.yml +++ b/shard.yml @@ -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: diff --git a/src/suntime.cr b/src/suntime.cr index 04d0035..9712b60 100644 --- a/src/suntime.cr +++ b/src/suntime.cr @@ -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