Function __global->cms_gmmktime

Definitions

sources/temporal.php

  • Get UNIX timestamp for a GMT date, with graceful error handling for integer overflows.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$hour integer No No required parameter N/A N/A The hour
$minute ?integer No No Null N/A N/A The minute (null: now)
$second ?integer No No Null N/A N/A The second (null: now)
$month ?integer No No Null N/A N/A The month (null: now)
$day ?integer No No Null N/A N/A The day (null: now)
$year ?integer No No Null N/A N/A The year (null: now)

Returns

  • The timestamp
  • Type: TIME
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get UNIX timestamp for a GMT date, with graceful error handling for integer overflows.
 *
 * @param  integer $hour The hour
 * @param  ?integer $minute The minute (null: now)
 * @param  ?integer $second The second (null: now)
 * @param  ?integer $month The month (null: now)
 * @param  ?integer $day The day (null: now)
 * @param  ?integer $year The year (null: now)
 * @return TIME The timestamp
 */

function cms_gmmktime(int $hour, ?int $minute = null, ?int $second = null, ?int $month = null, ?int $day = null, ?int $year = null) : int