Translations:Manual:Database.php/25/en

Convert a timestamp in one of the formats accepted by $wfTimestamp to the format used for inserting into timestamp fields in this DBMS. If NULL is input, it is passed through, allowing NULL values to be inserted into timestamp fields. The result is unquoted, and needs to be passed through addQuotes before it can be included in raw SQL.