[field:senddate runphp=’yes’] $ntime = time(); $oneday = 3600 * 24; $twoday = 3600 * 48; $threeday = 3600 * 72; if(($ntime – @me) < $oneday) @me = “今天”; elseif(($ntime – @me) < $twoday) @me = “昨天”; elseif(($ntime – @me) < $threeday) @me = “前天”; else @me=MyDate(‘m-d’,@me); [/field:senddate] [field:senddate function=MyDate(‘H:s’,@me)/] |
新闻热点
疑难解答