aboutsummaryrefslogtreecommitdiffstats
path: root/include/dblayer/functions_mysql.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/dblayer/functions_mysql.inc.php')
-rw-r--r--include/dblayer/functions_mysql.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/dblayer/functions_mysql.inc.php b/include/dblayer/functions_mysql.inc.php
index aa56e1f98..7eb659409 100644
--- a/include/dblayer/functions_mysql.inc.php
+++ b/include/dblayer/functions_mysql.inc.php
@@ -636,6 +636,11 @@ function pwg_db_get_weekday($date)
return 'WEEKDAY('.$date.')';
}
+function pwg_db_date_to_ts($date)
+{
+ return 'UNIX_TIMESTAMP('.$date.')';
+}
+
// my_error returns (or send to standard output) the message concerning the
// error occured for the last mysql query.
function my_error($header, $die)