]> git.mxchange.org Git - mailer.git/blobdiff - inc/db/lib-mysql3.php
Extension ext-coupon continued, a lot improvements applied:
[mailer.git] / inc / db / lib-mysql3.php
index f8c429e42655bda9889c5415c8682d1de2abec4f..13e69f99b9b328df6721c46bdaf003bff3caf8e4 100644 (file)
@@ -547,6 +547,11 @@ function SQL_PREPARE_SQL_STRING ($sqlString, $enableCodes = true) {
        return $GLOBALS['sql_strings'][$sqlString];
 }
 
+// Creates a MySQL TIMESTAMP compatible string from given Uni* timestamp
+function SQL_EPOCHE_TO_TIMESTAMP ($timestamp) {
+       return generateDateTime($timestamp, 7);
+}
+
 // Check if there is a SQL table created
 function isSqlTableCreated ($tableName) {
        // Do we have cache?