function Time::getCurrentTime
Same name in other branches
- 8.9.x core/lib/Drupal/Component/Datetime/Time.php \Drupal\Component\Datetime\Time::getCurrentTime()
- 10 core/lib/Drupal/Component/Datetime/Time.php \Drupal\Component\Datetime\Time::getCurrentTime()
- 11.x core/lib/Drupal/Component/Datetime/Time.php \Drupal\Component\Datetime\Time::getCurrentTime()
Overrides TimeInterface::getCurrentTime
1 call to Time::getCurrentTime()
- Time::getRequestTime in core/
lib/ Drupal/ Component/ Datetime/ Time.php - Returns the timestamp for the current request.
File
-
core/
lib/ Drupal/ Component/ Datetime/ Time.php, line 58
Class
- Time
- Provides a class for obtaining system time.
Namespace
Drupal\Component\DatetimeCode
public function getCurrentTime() {
return time();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.