0.0
No commit activity in last 3 years
No release in over 3 years
Returns the date when the clocks in the UK go forward or backwards 1 hour.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.6.0, ~> 0.6
~> 0.10, >= 0.10.6
>= 0.2.0, ~> 0.2
 Project Readme

Introducing the UKClockChange gem

require 'ukclockchange'

h = UKClockChange.next

#=> {:change=>:back, :date=>#<Date: 2020-10-25 ...>, 
#    :days_remaining=>16, :countdown_duration=>"15 days 14 hrs", 
#    :formatted_date=>"Sunday the 25th of October"} 

puts "The clocks go %s %s." % [h[:change], h[:formatted_date]]

<pre>The clocks go back Sunday the 25th of October.</pre>

Resources

clock change clockchange bst gmt date time forward back