← All docs
gmdate() — internals
Compiler internals for gmdate(): lowering path, type checks, and runtime helpers.
gmdate() — internals
Where it lives
- Signature:
src/builtins/system/gmdate.rs - Lowering:
src/codegen/lower_inst/builtins/system.rs:33 (lower_gmdate) - Function symbol:
lower_gmdate()
Lowering notes
- Lowers
gmdate(format[, timestamp]): the UTC counterpart ofdate(). - Identical argument marshalling to
date(), but dispatches to__rt_gmdate, which formats - the instant in UTC regardless of the active default timezone.
Runtime helpers
The following runtime helpers are referenced:
__rt_date__rt_gmdate
Signature summary
function gmdate(string $format, int $timestamp = null): string
What the type checker enforces
- Arity: takes 1–2 arguments (1 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/time/gmdate.rs(eval_builtin!) - Dispatch hooks:
direct,values