Particiona o time recebido para analisar qual informação diz respeito à hora, minutos e segundos
@param string $times
770209
private function prepareTime(string $times)
    {
        foreach (preg_split('/\W/i', $times) as $time) {
            $this->getDatePart($time);
        }
    }
1278324
public function setEndTime(float $time){
        if($time <= $this->start){
            throw new \LogicException;
        }

        $this->end  = $time;

        $this->timeline->setExecutionTime($this->end - $this->start);
    }
694067
protected function checkExceededTime($time)
    {
        $now = Carbon::now();
        $expire = Carbon::parse($time)->addMinutes(config('laravel2step.laravel2stepExceededCountdownMinutes'));
        $expired = $now->gt($expire);

        if ($expired) {
            return true;
        }

        return false;
    }
1032556
protected function add_time_columns(&$columns, &$headers) {
        $columns[] = 'timestart';
        $headers[] = get_string('startedon', 'quiz');

        $columns[] = 'timefinish';
        $headers[] = get_string('timecompleted', 'quiz');

        $columns[] = 'duration';
        $headers[] = get_string('attemptduration', 'quiz');
    }
1141929
public function atLeast($times = null)
    {
        // API compat with mockery - allows atLeast()->times(1)
        if ($times === null) {
            $this->atLeastWasCalled = true;
        } else {
            // normal operation
            $count = 0;
            $this->expectation->setPostPerformCallback(function() use (&$count, $times){
                $this->commentBuilder->incrementCallCount();
                $count++;
                if ($count >= $times) {
                    $this->expectation->setSatisfied(true);
                }
            });

            if ($times === 0) {
                $this->expectation->setSatisfied(true);
            }

            $this->commentBuilder->setTimes($times);
            $this->commentBuilder->setAtLeast(true);
        }
        
        return $this;
    }
736562
public function add_hours($hours)
    {
        $this->time += $hours * self::$TIME2SEC['h'];
        $this->set_timestamp($this->time);
        
        return $this;
    }
327127
public function setUpdatedAt($time)
    {
        if ($time instanceof \DateTimeInterface) {
            $time = $time->format(DATE_RFC3339);
        }

        $this->setValue('lastModified', (string) $time);
    }
234597
public function getIndentationPrefix($times = 1)
    {
        if (!is_integer($times)) {
            throw new \InvalidArgumentException('The times parameter has to be an integer');
        }

        $indentation = '';

        for ($i = 0; $i < $times; $i++) {
            $indentation .= $this->getTemplate()->getIndentation();
        }

        return $indentation;
    }
144507
protected function setFinished($time = null)
    {
        $this->finished = $time ?: microtime(true);
        $this->setState(RunInterface::STATE_NOT_RUNNING);
    }
609638
public function repeat($times){
		
		if(!\is_numeric($times)){
			throw new \InvalidArgumentException('$times is not an int');
		}
		
		return new static(\implode('', \array_fill(0, $times, $this->_Value)),
				$this->_Encoding);
		
	}
159682
public function logQuery($query, $bindings, $time = null)
    {
        if ($this->loggingQueries) {
            $this->queryLog[] = compact('query', 'bindings', 'time');
        }
    }
204596
public static function timeToInt($time)
    {
        $timeHour = substr($time, 0, 2);
        if (substr($time, 0, 1) == '0') {
            $timeHour = substr($time, 1, 1);
        }
        $timeMin     = substr($time, 3, 5);
        $timeHourMin = ((int)$timeHour * 60) + ((int)$timeMin / 1);
        $values      = $timeHourMin;

        return $values;
    }
795949
public static function toReadableTime($time, $decimals = 3)
    {
        $decimals = (int) $decimals;
        $unit     = 'sec';

        return sprintf("%.{$decimals}f %s", $time, $unit);
    }
751024
public static function repeat($data, int $times): Arrayy
    {
        if ($times === 0 || empty($data)) {
            return Arrayy::create();
        }

        return Arrayy::create(\array_fill(0, $times, $data));
    }
370305
public function time($time, $precision = 0)
    {
        $units = 's';
        if ($time < 1e-6) {    // <1us
            $units = 'ns';
            $time *= 1e9;

        } elseif ($time < 1e-3) { // <1ms
            $units = "\xc2\xb5s";
            $time *= 1e6;

        } elseif ($time < 1) { // <1s
            $units = 'ms';
            $time *= 1e3;
        }

        return \round($time, $precision) . ' ' . $units;
    }
803542
public function click($time=null) {
        $this->total++;
        if ( ! $this->timestart ) {
            $this->timestart = (int) ( time() / $this->scale );
        }
        if ( ! $time ) $time = time();
        $time = (int) ($time / $this->scale);
        $delta = $time - $this->timestart;
        if ( $delta < 0 ) $delta = 0;  // 0 is OK
        if ( isset($this->buckets[$delta]) ) {
            $this->buckets[$delta]++;
        } else {
            $this->buckets[$delta] = 1;
        }
    }
475544
protected function log($sql, $bindings, $time)
		{
			Event::fire('Query', array($sql, $bindings, $time));
			static::$queries = compact('sql', 'bindings', 'time');
		}