|
update : 2015.11.03
php.shukuma.com검색:
|
DateInterval::__construct(PHP 5 >= 5.3.0, PHP 7) DateInterval::__construct — Creates a new DateInterval object 설명
public DateInterval::__construct
( string
$interval_spec
)Creates a new DateInterval object. 인수
오류/예외
Throws an Exception when the 예제
Example #1 DateInterval example
<?php위 예제의 출력:
object(DateInterval)#1 (8) {
["y"]=>
int(2)
["m"]=>
int(0)
["d"]=>
int(4)
["h"]=>
int(6)
["i"]=>
int(8)
["s"]=>
int(0)
["invert"]=>
int(0)
["days"]=>
bool(false)
}
참고
|