public static function fromString($startTime, $endTime)
    {
        return new self(Time::fromString($startTime), Time::fromString($endTime));
    }
public static function fromString($startTime, $endTime)
    {
        return new self(Time::fromString($startTime), Time::fromString($endTime));
    }
public static function fromString ( $ startTime , $ endTime ) { return new self ( Time :: fromString ( $ startTime ) , Time :: fromString ( $ endTime ) ) ; }
Creates a new interval from time strings.

@param string $startTime The start time
@param string $endTime   The end time

@return TimeInterval

@throws \InvalidArgumentException
Creates a new interval from time strings .