public static function createFromInstance(\Bitrix\Main\Type\DateTime $date) { return static::createFromTimestamp($date->getTimeStamp()); }