Skip to content

jrobertson/easter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Returns the date for Easter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages