easter

Easter date calculation engine.

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-22 05:29

Installation

nimble install easter
choosenim install easter
git clone https://github.com/GeK2K/easter

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
easter - - - - - - -

Source

Repository https://github.com/GeK2K/easter
Homepage https://github.com/GeK2K/easter
Registry Source nimble_official

README

Easter

License: MIT

Introduction

Unlike Christmas which is always on December 25, the date of Easter Sunday varies from year to year. However, there are algorithms that allow you to calculate this date for any past, present or future year.

The algorithm that was implemented in this module is described here and its results were successfully compared to the 518 Easter Sunday dates that can be found on these webpages:

  • http://palluy.fr/index.php?page=1583-a-1600-apres-paques
  • https://www.census.gov/data/software/x13as/genhol/easter-dates.html

Compatibility

Nim +2.0.0

Dependencies

Nim standard library only.

Getting started

Install easter using nimble:

nimble install easter

or add a dependency to the .nimble file of your project:

requires "easter >= 0.1.0"

and start using it:

import easter

let easterSunday2054 = gregorianEasterSundayMMDD(2054)

# the 'gregorianEasterSundayMMDD' proc returns an Option
# for the reasons given in the documentation

doAssert:  easterSunday2054 is Option[(int, int)]
doAssert:  get(easterSunday2054) == (month: 3, monthday: 29)

Documentation

API Reference