DateTime::createFromInterface
PHP 8
DateTime::createFromInterface - Returns new DateTime object encapsulating the given DateTimeInterface object
Manual
DateTime::createFromInterface(
DateTimeInterface$object ): public static DateTime
Parameters
- object
-
The DateTimeInterface object that needs to be converted to a mutable version. This object is not modified, but instead a new DateTime object is created containing the same date, time, and timezone information.
Return Values
Returns a new DateTime instance.