Skip navigation
Help

REQUEST_TIME

  1. drupal
    1. 7 drupal/includes/bootstrap.inc

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()).

File

drupal/includes/bootstrap.inc, line 199
Functions that need to be loaded on every Drupal request.

Code

define('REQUEST_TIME', (int) $_SERVER['REQUEST_TIME'])