wiki/content/20201113123648-createfromimmutable.md

339 B

date id title
2020-11-13 984344e1-ee68-4475-b792-71f2a6e0b766 createFromImmutable()

Description

Similar to createFromInterface(), but this function creates a DateTime object from a DateTimeImmutable one.

Syntax

DateTime::createFromImmutable(new DateTimeImmutable())