(PHP 5 >= 5.5.0, PHP 7, PHP 8)
DateTimeImmutable::modify — Creates a new object with modified timestamp
Creates a new DateTimeImmutable object with modified timestamp. The original object is not modified.
object
僅過程化風(fēng)格:由 date_create() 返回的 DateTime 類型的對象。此函數(shù)會(huì)修改這個(gè)對象。
modifier
日期/時(shí)間字符串。正確格式的說明詳見 日期與時(shí)間格式。
Returns the newly created object 或者在失敗時(shí)返回 false
.