REQUEST_TIME

  1. drupal
    1. 8
    2. 7

For convenience, define a short form of the request time global.

REQUEST_TIME is a float with microseconds since PHP 5.4.0, but float timestamps confuses most of the PHP functions (including date_create()).

includes/bootstrap.inc, line 199

<?php
define('REQUEST_TIME', (int) $_SERVER['REQUEST_TIME'])
?>