← All docs

mktime()

Returns the Unix timestamp for a date.

mktime()

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

Returns the Unix timestamp for a date.

Parameters:

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

Returns: int

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

Internals

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