← All docs
mktime() — internals
Compiler internals for mktime(): lowering path, type checks, and runtime helpers.
mktime() — internals
Where it lives
- Signature:
src/builtins/system/mktime.rs - Lowering:
src/codegen/lower_inst/builtins/system.rs:140 (lower_mktime) - Function symbol:
lower_mktime()
Lowering notes
- Lowers
mktime(hour, minute, second, month, day, year)through the runtime helper.
Runtime helpers
The following runtime helpers are referenced:
__rt_checkdate__rt_gmmktime__rt_mktime
Signature summary
function mktime(int $hour, int $minute, int $second, int $month, int $day, int $year): int
What the type checker enforces
- Arity: takes exactly 6 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/time/mktime.rs(eval_builtin!) - Dispatch hooks:
direct,values