function Time::getCurrentMicroTime

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Datetime/Time.php \Drupal\Component\Datetime\Time::getCurrentMicroTime()
  2. 10 core/lib/Drupal/Component/Datetime/Time.php \Drupal\Component\Datetime\Time::getCurrentMicroTime()
  3. 11.x core/lib/Drupal/Component/Datetime/Time.php \Drupal\Component\Datetime\Time::getCurrentMicroTime()

Overrides TimeInterface::getCurrentMicroTime

1 call to Time::getCurrentMicroTime()
Time::getRequestMicroTime in core/lib/Drupal/Component/Datetime/Time.php
Returns the timestamp for the current request with microsecond precision.

File

core/lib/Drupal/Component/Datetime/Time.php, line 65

Class

Time
Provides a class for obtaining system time.

Namespace

Drupal\Component\Datetime

Code

public function getCurrentMicroTime() {
    return microtime(TRUE);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.