General Introduction
Features
Settings
Email system
Date and Time
URL rewrite
Special constants
Special variables
Complex logic in filter
CharToDateFunction
Commit
CompareDates
Connect
CurrentDateFunction
CurrentTimeFunction
DateFormatToPHP
DateToCharFunction
DatetimeToTimestampFunction
Disconnect
ForSql
FormatDate
InitTableVarsForEdit
Insert
IsDate
LastID
NextID
ParseSqlBatch
PrepareFields
PrepareInsert
PrepareUpdate
Query
QueryBind
QueryBindSelect
Rollback
RunSqlBatch
StartTransaction
Update
DatetimeToTimestampFunction
CDatabase::DatetimeToTimestampFunction( TABLE_FIELD );
The method allows to sel ect date in UNIX_TIMESTAMP format without calling MakeTimeStamp method. Non-static method.
Parameters
Parameter | Description |
---|---|
TABLE_FIELD | Database field that must be converted from the DATE TIME format into the TIMESTAMP format. |
Returned value
Returns a valid timestamp.
Examples of use
<? $strSql = " SELECT ID, ".$DB-> DatetimeToTimestampFunction("DATE_CREATE")." DATE_CREATE FR OM my_table "; $rs = $DB->Query($strSql, false, $err_mess.__LINE__); ?>
© «Bitrix24», 2001-2024
Up