mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 06:09:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1375 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e2b8651986
commit
99b2ff6f62
4 changed files with 36 additions and 5 deletions
|
|
@ -127,7 +127,13 @@
|
|||
**/
|
||||
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)));
|
||||
$hour = (int)substr($str,8,2);
|
||||
$min = (int)substr($str,10,2);
|
||||
$sec = (int)substr($str,12,2);
|
||||
$year = (int)substr($str,0,4);
|
||||
$month = (int)substr($str,4,2);
|
||||
$day = (int)substr($str,6,2);
|
||||
return date($format, mktime($hour, $min, $sec, $month?$month:1, $day?$day:1, $year));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue