git-svn-id: http://xe-core.googlecode.com/svn/trunk@1022 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-09 00:55:13 +00:00
parent 8345304333
commit 5bb93cd38a
14 changed files with 135 additions and 4 deletions

View file

@ -126,6 +126,7 @@
* @return string
**/
function zdate($str, $format = "Y-m-d H:i:s") {
if(!$str) return;
return date($format, mktime(substr($str,8,2), substr($str,10,2), substr($str,12,2), substr($str,4,2), substr($str,6,2), substr($str,0,4)));
}