Low commit activity in last 3 years
No release in over a year
Generates the British sunrise and sunset times.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.7, >= 0.7.1
>= 0.2.0, ~> 0.2
~> 0.3, >= 0.3.3
~> 1.9, >= 1.9.2
~> 1.7, >= 1.7.3
~> 0.8, >= 0.8.5
 Project Readme

Introducing the british_suntimes gem

require 'british_suntimes'

h = BritishSuntimes.new.to_h
"Today: sunrise: %s sunset: %s" % h[Date.today.strftime('%d %b')]

#=> Today: sunrise: 06:47 sunset: 18:01

The british_suntimes gem calculates the British (default location is Edinburgh) sunrise and sunset times for the current year.

sunrise sunset suntimes