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