Elgg\TimeUsing::getCurrentTime PHP Метод

getCurrentTime() публичный Метод

Get the (cloned) time. If setCurrentTime() has not been set, this will return a new DateTime().
См. также: DateTime::modify
public getCurrentTime ( string $modifier = '' ) : DateTime
$modifier string Time modifier
Результат DateTime
    public function getCurrentTime($modifier = '')
    {
        $time = $this->time ? $this->time : new DateTime();
        $time = clone $time;
        if ($modifier) {
            $time->modify($modifier);
        }
        return $time;
    }