public static function fromFormat(string $format, string $string): TimeInterface
    {
        $time = CommonTime::fromFormat($format, $string);
        return new self($time->asInt());
    }
public static function fromFormat(string $format, string $string): TimeInterface
    {
        $time = CommonTime::fromFormat($format, $string);
        return new self($time->asInt());
    }
public static function fromFormat ( string $ format , string $ string ) : TimeInterface { $ time = CommonTime :: fromFormat ( $ format , $ string ) ; return new self ( $ time -> asInt ( ) ) ; }
Create a new instance from a time in a specified format.

@param string $format The format the string is in (using %h, %m, %s as placeholders)
@param string $string The time to parse

@return TimeInterface
Create a new instance from a time in a specified format .