DateTimeImmutable::modify

(PHP 5 >= 5.5.0, PHP 7)

DateTimeImmutable::modifyCreates a new object with modified timestamp

说锟斤拷

public DateTimeImmutable::modify ( string $modify ) : DateTimeImmutable

Creates a new DateTimeImmutable object with modified timestamp. The original object is not modified.

锟斤拷锟斤拷

object

锟斤拷锟斤拷锟教伙拷锟斤拷锟斤拷锟� date_create() 锟斤拷锟截碉拷 DateTime 锟斤拷锟酵的讹拷锟襟。此猴拷锟斤拷锟斤拷锟睫革拷锟斤拷锟斤拷锟斤拷锟�

modify

锟斤拷锟斤拷/时锟斤拷锟街凤拷锟斤拷锟斤拷锟斤拷确锟斤拷式锟斤拷说锟斤拷锟斤拷锟� 锟斤拷锟斤拷锟斤拷时锟斤拷锟绞�锟斤拷

锟斤拷锟斤拷值

Returns the newly created object 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE.