← All docs

gmdate() — internals

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

gmdate() — internals

Where it lives

Lowering notes

  • Lowers gmdate(format[, timestamp]): the UTC counterpart of date().
  • 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)

Cross-references