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

	return '(' . $from . " + cast(" . $days . "||' day' as interval))";
}