<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_26165"> <div class="blockcode"> <div id="code_Uz4"><ol> <li> <li> <?php <li>/**</li> <li>时间转换Unix时间戳</li> <li>link: http://bbs.it-home.org</li> <li>*/</li> <li>date_default_timezone_set('Asia/Chongqing'); </li> <li>$time1 = "2013-02-16 08:40:54"; </li> <li>$time2 = strtotime($time1); </li> <li>echo $time2; </li> <li>echo date('Y-m-d h:i:s',$time2); </li> <li>?></li> </ol></div> <em onclick="copycode($('code_Uz4'));">复制代码</em> </div> </td></tr></table> <div id="comment_26165" class="cm"> </div> <div id="post_rate_div_26165"></div> <br><br>