src/Carbon/CarbonInterval.php
public static function createFromDateString($time)
    {
        $interval = parent::createFromDateString($time);
        if ($interval instanceof DateInterval && !($interval instanceof static)) {
            $interval = static::instance($interval);
        }

        return static::instance($interval);
    }
public static function createFromDateString($time)
    {
        $interval = parent::createFromDateString($time);
        if ($interval instanceof DateInterval && !($interval instanceof static)) {
            $interval = static::instance($interval);
        }

        return static::instance($interval);
    }
public static function createFromDateString ( $ time ) { $ interval = parent :: createFromDateString ( $ time ) ; if ( $ interval instanceof DateInterval && ! ( $ interval instanceof static ) ) { $ interval = static :: instance ( $ interval ) ; } return static :: instance ( $ interval ) ; }
Sets up a DateInterval from the relative parts of the string.

@param string $time

@return static

@link http://php.net/manual/en/dateinterval.createfromdatestring.php
Sets up a DateInterval from the relative parts of the string .