createFromInterface()

Description

Similar to createFromImmutable(), but this method creates a date from any object that uses DateTimeInterface

Syntax

DateTime::createFromInterface(DateTimeInterface other);