D7 API documentation
What's New
Modules
Main module in old core
addSecondsToDateTime
castToChar
convertDateField
convertDatetimeField
convertStringField
forSql
formatDate
getAliasLength
getCharToDateFunction
getColumnTypeByField
getConcatFunction
getConverter
getCurrentDateFunction
getCurrentDateTimeFunction
getDateToCharFunction
getDatetimeToDateFunction
getFieldByColumnType
getIsNullFunction
getLeftQuote
getLengthFunction
getQueryDelimiter
getRightQuote
getSubstrFunction
getTopSql
prepareMerge
softCastTextToChar
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
Parameter | Description | Version |
---|---|---|
$seconds | How many seconds to be added. | |
$from | Datetime database field of expression. |
Examples
© «Bitrix24», 2001-2024
Up