Documentation

addSecondsToDateTime

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

This non-static method returns SQL function returns SQL function for adding seconds time interval to $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 add.
$fromDatetime database field.

Examples



© «Bitrix24», 2001-2022
Up