function Time::getProxyRequestTime
Same name in other branches
- 11.x core/lib/Drupal/Component/Datetime/Time.php \Drupal\Component\Datetime\Time::getProxyRequestTime()
Returns a mimic of the timestamp of the current request.
Return value
int A value returned by time().
1 call to Time::getProxyRequestTime()
- Time::getRequestTime in core/
lib/ Drupal/ Component/ Datetime/ Time.php
File
-
core/
lib/ Drupal/ Component/ Datetime/ Time.php, line 84
Class
- Time
- Provides a class for obtaining system time.
Namespace
Drupal\Component\DatetimeCode
protected function getProxyRequestTime() : int {
if (!isset($this->proxyRequestTime)) {
$this->proxyRequestTime = $this->getCurrentMicroTime();
}
return (int) $this->proxyRequestTime;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.