DateInterval::__construct
DateInterval::format
DateInterval
PHP Manual

# DateInterval::createFromDateString

(PHP 5 >= 5.3.0)

DateInterval::createFromDateString — Sets up a DateInterval from the relative parts of the string

### Descripción

public static DateInterval DateInterval::createFromDateString ( string `$time` )

Uses the normal date parsers and sets up a DateInterval from the relative parts of the parsed string.

### Lista de parámetros

`time`

  Date with relative parts.

### Valores retornados

Returns new DateInterval instance if success.

DateInterval::__construct
DateInterval::format
DateInterval
PHP Manual