background image

$str

 = '

 

昨天 '.

$rtime

;

else

$str

 = '

 

前天 '.

$rtime

;

}

else

{

$str

 = 

$rtime

;

}

return

 

$str

;

}
?>
 
注意函数 transfer_time()中的参数

$time

必须为 Unix 时间戳,如果不是请先用

strtotime

()将

其转换成 Unix 时间戳