easter : compute the date of Gregorian Easter for a given year
script karma |
Rating 0/0,
Downloaded by 417 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Antoine Mechelynck |
|
script type |
utility |
|
description |
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. |
|
install details |
Drop the script in the autolad/ subdirectory of a 'runtimepath' directory other than $VIMRUNTIME |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 3.15.195.46
|