removed mods directory from the ATutor codebase
[atutor.git] / mods / phpdoc2 / PhpDocumentor / phpDocumentor / Smarty-2.6.0 / libs / plugins / shared.make_timestamp.php
diff --git a/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/plugins/shared.make_timestamp.php b/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/plugins/shared.make_timestamp.php
deleted file mode 100644 (file)
index 25c7f5c..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php\r
-/**\r
- * Smarty shared plugin\r
- * @package Smarty\r
- * @subpackage plugins\r
- */\r
-\r
-\r
-/**\r
- * Function: smarty_make_timestamp<br>\r
- * Purpose:  used by other smarty functions to make a timestamp\r
- *           from a string.\r
- * @param string\r
- * @return string\r
- */\r
-function smarty_make_timestamp($string)\r
-{\r
-    if(empty($string)) {\r
-        $string = "now";\r
-    }\r
-    $time = strtotime($string);\r
-    if (is_numeric($time) && $time != -1)\r
-        return $time;\r
-\r
-    // is mysql timestamp format of YYYYMMDDHHMMSS?\r
-    if (preg_match('/^\d{14}$/', $string)) {\r
-        $time = mktime(substr($string,8,2),substr($string,10,2),substr($string,12,2),\r
-               substr($string,4,2),substr($string,6,2),substr($string,0,4));\r
-\r
-        return $time;\r
-    }\r
-\r
-    // couldn't recognize it, try to return a time\r
-    $time = (int) $string;\r
-    if ($time > 0)\r
-        return $time;\r
-    else\r
-        return time();\r
-}\r
-\r
-/* vim: set expandtab: */\r
-\r
-?>\r