4 ms·
On a tangent, my favorite example of how php is a giant bag of rando functions is easter_date(). This ships with the language core.
by encoderer 9y ago
On a tangent, my favorite example of how php is a giant bag of rando functions is easter_date(). This ships with the language core.
- quirkot 9y agoAbsolute best example of "why the heck should I calculate that myself"
- mrrsm 9y agoI wonder if they will deprecate the function after 2037?
- deleted 9y ago[deleted]
- Chyzwar 9y agonah, they will just add real_easter_date().
- CompanionCuube 9y agoWouldn't that be easter_real_date()?
- mrrsm 9y agoThey will probably go with one for a single release before leaving it deprecated for years and switching to the other but never remove it from the core.
- kalleboo 9y agoThere's already an easter_days(), and comments complaining that it doesn't revert to the Gregorian calendar before the 1700's... http://php.net/manual/en/function.easter-days.php http://php.net/manual/en/function.easter-days.php
- tangue 9y agoThere's a date_sunrise() that found its way to the core too... There must be a datetime geek in the core devs