← All docs

date_sunset() — internals

Compiler internals for date_sunset(): lowering path, type checks, and runtime helpers.

date_sunset() — internals

Where it lives

Lowering notes

  • Rewritten by the name resolver into a constructor or method call on the corresponding builtin class before type checking.

Semantic descriptor

Shared contract without a registry semantic descriptor.

EIR and runtime boundary

No registry-backed typed runtime target applies.

Signature summary

function date_sunset(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, ?float $latitude = null, ?float $longitude = null, ?float $zenith = null, ?float $utcOffset = null): mixed

What the type checker enforces

  • Arity: takes 1–6 arguments (5 optional).

Eval interpreter (magician)

Dispatched as a procedural date/time alias by crates/elephc-magician/src/interpreter/builtins/time/aliases.rs.

Cross-references