idate()
function idate(string $format, ?int $timestamp = null): mixed
Formats a timestamp with a single format character and returns it as an integer.
Parameters:
$format(string)$timestamp(?int), defaultnull, optional
Returns: mixed
Availability
- Compiled (AOT): supported through the Elephc compiler.
eval()(magician interpreter): supported through the procedural date/time alias dispatcher.
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how idate is implemented in the compiler, see the internals page.