From: Daniel Hromada Date: Thu, 9 Dec 2010 00:27:50 +0000 (+0100) Subject: date_diff function added so kyberia can show time according to the new epoche X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=2387f6d1ce45227cd547407506718e7dcb6b927b;p=mirrors%2FKyberia-bloodline.git date_diff function added so kyberia can show time according to the new epoche --- diff --git a/wwwroot/inc/smarty/node_methodz/function.date_diff.php b/wwwroot/inc/smarty/node_methodz/function.date_diff.php new file mode 100644 index 0000000..6eb6082 --- /dev/null +++ b/wwwroot/inc/smarty/node_methodz/function.date_diff.php @@ -0,0 +1,44 @@ +assign($assign,floor(($date2 - $date1)*$i)); + } else { + return floor(($date2 - $date1)*$i); + } + } + ?> \ No newline at end of file