constant REQUEST_TIME

Time of the current request in seconds elapsed since the Unix Epoch.

This differs from $_SERVER['REQUEST_TIME'], which is stored as a float since PHP 5.4.0. Float timestamps confuse most PHP functions (including date_create()).

See also

http://php.net/manual/reserved.variables.server.php

http://php.net/manual/function.time.php

121 uses of REQUEST_TIME
AggregatorCronTestCase::testCron in drupal-7.x/modules/aggregator/aggregator.test
Adds feeds and updates them via cron process.
aggregator_aggregator_process in drupal-7.x/modules/aggregator/aggregator.processor.inc
Implements hook_aggregator_process().
aggregator_cron in drupal-7.x/modules/aggregator/aggregator.module
Implements hook_cron().
aggregator_expire in drupal-7.x/modules/aggregator/aggregator.processor.inc
Expires items from a feed depending on expiration settings.
aggregator_refresh in drupal-7.x/modules/aggregator/aggregator.module
Checks a news feed for new items.

... See full list

File

drupal-7.x/includes/bootstrap.inc, line 218
Functions that need to be loaded on every Drupal request.

Code

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