DateTime::__construct
DateTime::diff
DateTime
PHP Manual

# DateTime::createFromFormat

(PHP 5 >= 5.3.0)

DateTime::createFromFormat — Returns new DateTime object formatted according to the specified format

### 설명

public static DateTime DateTime::createFromFormat ( string `$format` , string `$time` [, DateTimeZone `$timezone` ] )

Returns new DateTime object formatted according to the specified format.

### 인수

`format`

  Format accepted by date().

`time`

  String representing the time.

`timezone`

  Time zone.

### 반환값

Returns new DateTime instance.

DateTime::__construct
DateTime::diff
DateTime
PHP Manual