<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_19262"> <div class="blockcode"> <div id="code_I2G"><ol> <li><?php<li>functionrelativeTime($time = false, $limit = 86400, $format = 'g:i A M jS') {<li>if (empty($time) || (!is_string($time) ) && !is_numeric($time))) $time = time();<li>elseif (is_string($time)) $time = strtotime($time);<li><li>$now = time();<li>$relative = '';<li><li>if ($time === $now) $relative = '現在';<li>elseif ($time > $now) $relative = '将来';<li>else {<li>$diff = $今 - $time;<li><li>if ($diff >= $limit) $relative = date($format, $time);</li> <li>elseif ($diff $relative = '1 分前未満' ;</li> <li>} elseif (($ minutes = ceil($diff/60)) $relative = $ minutes.'分'.(((int)$分 === 1) ? '' : 's').' ago';</li> <li>} else {</li> <li>$hours = ceil($diff/3600);</li> <li>$relative = '約 '.$hours.'時間'.(((int)$時間 === 1) ? '' : 's').'前';</li> <li>}</li> <li>}</li> <li> <li>return $relative;</li> <li>}</li> </ol></div> <em onclick="copycode($('code_I2G'));">复制發</em> </div> </td></tr></table> <div id="comment_19262" class="cm"> </div> <div id="post_rate_div_19262"></div> <br><br>