public static function createFromFormat($format, $time, $object = null)
    {
        if (empty($object)) {
            $object = new DateTimeZone('America/Sao_Paulo');
        }
        return self::cast(parent::createFromFormat($format, $time, $object));
    }
public static function createFromFormat($format, $time, $object = null)
    {
        if (empty($object)) {
            $object = new DateTimeZone('America/Sao_Paulo');
        }
        return self::cast(parent::createFromFormat($format, $time, $object));
    }
public static function createFromFormat ( $ format , $ time , $ object = null ) { if ( empty ( $ object ) ) { $ object = new DateTimeZone ( 'America/Sao_Paulo' ) ; } return self :: cast ( parent :: createFromFormat ( $ format , $ time , $ object ) ) ; }
Returns new DateTime object formatted according to the specified format
@param string $format
@param string $time
@param \DateTimeZone $object
@return Date
@static
Returns new DateTime object formatted according to the specified format