• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/db/pgsqlsqlhelper.php
  • Класс: BitrixMainDBPgsqlSqlHelper
  • Вызов: PgsqlSqlHelper::addSecondsToDateTime
public function addSecondsToDateTime($seconds, $from = null)
{
	if ($from === null)
	{
		$from = static::getCurrentDateTimeFunction();
	}
	else
	{
		$from = $from . "::timestamp";
	}

	return $from . " + cast(" . $seconds . "||' second' as interval)";
}