Given a datetime, what is the season?
Current version 0.0.1 has the Modern Mid-Latitude Meteorological reckoning implemented. For the Northern hemisphere, spring begins on 1 March, summer on 1 June, autumn on 1 September, and winter on 1 December. For the Southern hemisphere, spring begins on 1 September, summer on 1 December, autumn on 1 March, and winter on 1 June.
Add this line to your application's Gemfile:
gem 'seasons_in_the_sun'
And then execute:
$ bundle
Or install it yourself as:
$ gem install seasons_in_the_sun
SeasonsInTheSun[:modern_mid_latitude_meteorological].lookup(DateTime.new(2013,12,1))
- Fork it ( http://github.com//seasons_in_the_sun/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request