• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/effective.php
  • Класс: BitrixTasksInternalsEffective
  • Вызов: Effective::getFirstRecordTime
static function getFirstRecordTime()
{
	$result = EffectiveTable::getList([
		'select' => ['DATETIME'],
		'order' => ['ID' => 'ASC'],
		'limit' => 1,
	]);

	return (($date = $result->fetch()) ? $date['DATETIME'] : false);
}