Function __global->_cms_mktime_polyfill

Definitions

sources/temporal.php

  • LEGACY: Fix null mktime values in older PHP versions.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$is_gmt boolean No No required parameter N/A N/A Whether the specified time is in GMT instead of user time
&$minute ?integer Yes No Null N/A N/A The minute, passed by reference (null: set to current)
&$second ?integer Yes No Null N/A N/A The second, passed by reference (null: set to current)
&$month ?integer Yes No Null N/A N/A The month, passed by reference (null: set to current)
&$day ?integer Yes No Null N/A N/A The day, passed by reference (null: set to current)
&$year ?integer Yes No Null N/A N/A The year, passed by reference (null: set to current)

Preview

Code (PHP)

/**
 * LEGACY: Fix null mktime values in older PHP versions.
 *
 * @param  boolean $is_gmt Whether the specified time is in GMT instead of user time
 * @param  ?integer $minute The minute, passed by reference (null: set to current)
 * @param  ?integer $second The second, passed by reference (null: set to current)
 * @param  ?integer $month The month, passed by reference (null: set to current)
 * @param  ?integer $day The day, passed by reference (null: set to current)
 * @param  ?integer $year The year, passed by reference (null: set to current)
 */

function _cms_mktime_polyfill(bool $is_gmt, ?int &$minute = null, ?int &$second = null, ?int &$month = null, ?int &$day = null, ?int &$year = null)