Web Analytics

PHP gmmktime() Function

Date/Time FunctionPHP 4+

The gmmktime() function returns a Unix timestamp for a GMT date. It is identical to mktime() except the passed parameters represent a GMT date.

Syntax

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

Try It Online

Output
Click Run to execute your code

Related Functions

  • mktime() - Get Unix timestamp for a date
  • gmdate() - Format a GMT/UTC date/time