← All docs

gmmktime()

Returns the Unix timestamp for a GMT date.

gmmktime()

function gmmktime(int $hour, int $minute, int $second, int $month, int $day, int $year): int

Returns the Unix timestamp for a GMT date.

Parameters:

  • $hour (int)
  • $minute (int)
  • $second (int)
  • $month (int)
  • $day (int)
  • $year (int)

Returns: int

Availability

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

Internals

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