Project

easter

0.0
No commit activity in last 3 years
No release in over 3 years
Returns the date for Easter, Ash Wednesday, Palm Sunday, Good Friday, Ascension Day, and Pentecost.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.1, >= 0.1.2
 Project Readme

Introducing the Easter gem

require 'easter'

# return the date of Easter for the current year (2014)
Easter.easter        #=>  #<DateTime: 2014-04-20T00:00:00+00:00 (...)>

# return the date of Easter for 2015
Easter.easter 2015   #=>  #<DateTime: 2015-04-05T00:00:00+00:00 (...)>

In addition we can return the dates for Ash Wednesday, Palm Sunday, Good Friday, Ascension Day, and Pentecost.

Easter.ash_wednesday #=>  #<DateTime: 2014-03-05T00:00:00+00:00 (...)>

Resources

gem easter dates holidays