From 2387f6d1ce45227cd547407506718e7dcb6b927b Mon Sep 17 00:00:00 2001 From: Daniel Hromada Date: Thu, 9 Dec 2010 01:27:50 +0100 Subject: [PATCH] date_diff function added so kyberia can show time according to the new epoche --- .../node_methodz/function.date_diff.php | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 wwwroot/inc/smarty/node_methodz/function.date_diff.php 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 -- 2.30.2