← All docs

gmdate()

Formats a GMT/UTC date and time.

gmdate()

function gmdate(string $format, ?int $timestamp = null): string

Formats a GMT/UTC date and time.

Parameters:

  • $format (string)
  • $timestamp (?int), default null, optional

Returns: string

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how gmdate is implemented in the compiler, see the internals page.