getdate()
function getdate(?int $timestamp = null): array
Returns date/time information.
Parameters:
$timestamp(?int), defaultnull, optional
Returns: array
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/time/getdate.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how getdate is implemented in the compiler, see the internals page.