<?php //Get detail gap of year,month and days between two different time by vfhky 20130728 $common = (time()-strtotime(get_option('swt_builddate'))); $a = floor($common/86400/360); //整數年 $b = floor($common/86400/30) - $a*12; //整數月 $c = floor($common/86400) - $a*360 - $b*30; //整數日 $d = floor($common/86400); //總的天數 echo $a."年".$b."月".$c."日(共計".$d."天)"; ?>