checkdate()
function checkdate(int $month, int $day, int $year): bool
Validates a Gregorian date.
Parameters:
$month(int)$day(int)$year(int)
Returns: bool
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/time/checkdate.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how checkdate is implemented in the compiler, see the internals page.