easter : compute the date of Gregorian Easter for a given year
| script karma
Downloaded by 202
Comments, bugs, improvements
script versions (upload new version)
|easter#date(year), where year is an integer > 1582, returns (if no error) a Dictionary with keys 'year' 'month' and 'day'. Each key value is an integer.
- Strings are converted to integers the usual Vim way
- Floats are truncated to an Integer by discarding any fractional part
- Other non-integer types, or values < 1583, cause an error and return an empty Dictionary.
Years in the far future are accepted but may cause unspecified behaviour (e.g. there is talk of making years 4000, 8000, 12000, etc. non-leap: this eventuality has not been taken into account).
See also the comments in the script source.
Known limitation: To be used for Gregorian Easter only. Dates for Julian (Orthodox) Easter, or for Pesach, are nor computed.
|Drop the script in the autolad/ subdirectory of a 'runtimepath' directory other than $VIMRUNTIME|
Click on the package to download.
ip used for rating: 184.108.40.206