Morilog\Jalali\jDateTime::createCarbonFromFormat PHP Method

createCarbonFromFormat() public static method

public static createCarbonFromFormat ( $format, $str, null $timezone = null ) : Carbon\Carbon
$format
$str
$timezone null
return Carbon\Carbon
    public static function createCarbonFromFormat($format, $str, $timezone = null)
    {
        $dateTime = self::createDatetimeFromFormat($format, $str, $timezone);
        return Carbon::createFromTimestamp($dateTime->getTimestamp(), $dateTime->getTimezone());
    }