(PHP 5 >= 5.5.0, PHP 7)
DateTimeImmutable::modify — Creates a new object with modified timestamp
Creates a new DateTimeImmutable object with modified timestamp. The original object is not modified.
object
Procedural style only: A DateTime object returned by date_create(). The function modifies this object.
modify
날짜/시간 문자열. 유효한 형식은 날짜와 시간 형식에서 설명하고 있습니다.
Returns the newly created object실패 시 FALSE
를 반환합니다.