Documentation

createFromPhp

static public static
\Bitrix\Main\Type\DateTime::createFromPhp(
 \DateTime $datetime
);

Static method creates object of class \DateTime from object's \DateTime PHP.

Parameters

ParameterDescriptionVersion
$datetimeSource object.

Example



© «Bitrix24», 2001-2024
Up