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.