date_parse()
function date_parse(string $datetime): array
Parses a date/time string into its components, warnings, and errors.
Parameters:
$datetime(string)
Returns: array
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 date_parse is implemented in the compiler, see the internals page.