method
public
Time::serialize()
Сигнатура
public serialize() : string
Возвращаемое значение
string
Как применяется в Time
Time::serialize() — метод класса \Bitrix\Bizproc\BaseType\Value\Time модуля «Бизнес-процессы».
Метод объекта: сначала нужен экземпляр Time.
use Bitrix\Main\Loader;
use Bitrix\Bizproc\BaseType\Value\Time;
Loader::includeModule('bizproc');
/** @var Time $object */
$result = $object->serialize();
// $result: stringДругие методы Time
__toString()getFormat()getOffset()getRenderFormat()getTimestamp()isCorrect()jsonSerialize()toServerTime()toSystemObject()toUserTime()tryMakeCorrectFormat()
serialize() есть и у других классов модуля «Бизнес-процессы»: Date, DateTime.
Исходный файл: source/bizproc/lib/basetype/value/time.php:94

