constant REQUEST_TIME

Same name in this branch

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

140 uses of REQUEST_TIME
AggregatorController::adminOverview in drupal/core/modules/aggregator/lib/Drupal/aggregator/Controller/AggregatorController.php
Displays the aggregator administration page.
aggregator_cron in drupal/core/modules/aggregator/aggregator.module
Implements hook_cron().
aggregator_refresh in drupal/core/modules/aggregator/aggregator.module
Checks a news feed for new items.
AliasManagerCacheDecorator::writeCache in drupal/core/lib/Drupal/Core/CacheDecorator/AliasManagerCacheDecorator.php
Implements \Drupal\Core\CacheDecorator\CacheDecoratorInterface::writeCache().
BulkFormTest::testBulkForm in drupal/core/modules/action/lib/Drupal/action/Tests/BulkFormTest.php
Tests the bulk form.

... See full list

File

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

Code

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