Documentation

addSecondsToDateTime

string public
\Bitrix\Main\DB\MssqlSqlHelper::addSecondsToDateTime(
 integer $seconds,
 integer $from = null
);

This non-static method returns SQL function to add seconds to the interval, indicated in the parameter $from. If $from is null or omitted, then current time is used.

$seconds and $from parameters are SQL unsafe.

Parameters

ParameterDescriptionVersion
$secondsHow many seconds to be added.
$fromDatetime database field of expression.

Examples



© «Bitrix24», 2001-2024
Up