def passover(year): """ Returns the date of Passover in a given Gregorian year. """ heb_year = year + 3760 heb = hebrew_sdn(heb_year, 8, 15) #Passover, 15 Nissan return "%d/%d/%d" % gregorian_ymd(heb)
def hanuka(year): """ Returns the date of first day of Hanuka in a given Gregorian year. We can't use passover as an offset, because the year length changes. The hebrew year have 6 possible lengths. """ heb_year = year + 3761 #Not 3760, because Hanuka is in Nov/Dec of the previous year heb = hebrew_sdn(heb_year, 3, 25) #Hanuka, 25 Kislev return "%d/%d/%d" % gregorian_ymd(heb)