REQUEST_TIME
Same name in other branches
- 9 core/includes/bootstrap.inc \REQUEST_TIME
- 8.9.x core/includes/bootstrap.inc \REQUEST_TIME
- 10 core/includes/bootstrap.inc \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
105 uses of REQUEST_TIME
- aggregator_aggregator_process in modules/
aggregator/ aggregator.processor.inc - Implements hook_aggregator_process().
- aggregator_cron in modules/
aggregator/ aggregator.module - Implements hook_cron().
- aggregator_expire in modules/
aggregator/ aggregator.processor.inc - Expires items from a feed depending on expiration settings.
- aggregator_view in modules/
aggregator/ aggregator.admin.inc - Displays the aggregator administration page.
- CommentTokenReplaceTestCase::testCommentTokenReplacement in modules/
comment/ comment.test - Creates a comment, then tests the tokens generated from it.
File
-
includes/
bootstrap.inc, line 218
Code
define('REQUEST_TIME', (int) $_SERVER['REQUEST_TIME']);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.