method
public
Time::__construct()
Сигнатура
public __construct(string $timeFormatted[, int $offset = 0 ]) : mixed
Параметры
$timeFormatted
string
$offset
int
= 0
Возвращаемое значение
mixed
Как применяется в Time
Time::__construct() — метод класса \Bitrix\Bizproc\BaseType\Value\Time модуля «Бизнес-процессы».
Конструктор: создаёт экземпляр Time — обязательные аргументы перечислены в разделе «Параметры».
use Bitrix\Main\Loader;
use Bitrix\Bizproc\BaseType\Value\Time;
Loader::includeModule('bizproc');
$timeFormatted = '';
$object = new Time($timeFormatted);Другие методы Time
__toString()getFormat()getOffset()getRenderFormat()getTimestamp()isCorrect()jsonSerialize()serialize()toServerTime()toSystemObject()toUserTime()tryMakeCorrectFormat()
__construct() есть и у других классов модуля «Бизнес-процессы»: BaseOperator, BetweenOperator, Condition, ConditionGroup, ContainOperator, Date, DateTime, EmptyOperator.
Исходный файл: source/bizproc/lib/basetype/value/time.php:12

