D7 API documentation
What's New
Modules
Main module in old core
addSecondsToDateTime
castToChar
convertFromDb
convertToDb
forSql
formatDate
getAliasLength
getAscendingOrder
getCharToDateFunction
getColumnTypeByField
getConcatFunction
getConverter
getCurrentDateFunction
getCurrentDateTimeFunction
getDateToCharFunction
getDatetimeToDateFunction
getDescendingOrder
getFieldByColumnType
getIsNullFunction
getLeftQuote
getLengthFunction
getQueryDelimiter
getRightQuote
getSubstrFunction
getTopSql
prepareAssignment
prepareInsert
prepareMerge
prepareUpdate
quote
softCastTextToChar
addSecondsToDateTime
string public \Bitrix\Main\DB\SqlHelper::addSecondsToDateTime( integer $seconds, integer $from = null );
This non-static method returns SQL function for adding seconds to the time interval specified in $from
. If $from
is null or omitted then current time is used.
Method parameters are SQL unsafe.
Parameters
Parameter | Description | Version |
---|---|---|
$seconds | How many seconds to add. | |
$from | Database date and time. |
Examples
© «Bitrix24», 2001-2024
Up