src/Sseffa/VideoApi/Services/Youtube.php
public static function _convert_time($time)
    {
        $reference = new DateTimeImmutable;
        $endTime = $reference->add(new DateInterval($time));

        return $endTime->getTimestamp() - $reference->getTimestamp();
    }
public static function _convert_time($time)
    {
        $reference = new DateTimeImmutable;
        $endTime = $reference->add(new DateInterval($time));

        return $endTime->getTimestamp() - $reference->getTimestamp();
    }
public static function _convert_time ( $ time ) { $ reference = new DateTimeImmutable ; $ endTime = $ reference -> add ( new DateInterval ( $ time ) ) ; return $ endTime -> getTimestamp ( ) - $ reference -> getTimestamp ( ) ; }
Parse the YouTube timestamp to seconds
@param  string $time YouTube format timestamp
@return integer      Seconds
Parse the YouTube timestamp to seconds