
function dtime($totime){
global $DT_TIME;
$dtime = $totime - $DT_TIME;
$dtime = dround($dtime/60/60/24, 0, true);
return $dtime;
}
调用方法:
列表循环中使用 {dtime($t[totime])}
内容页使用 {dtime($totime)}
注意: totime 是求购,展会,信息等频道的默认字段,其它频道是没有的,在其它频道使用,可以totime 改成你的自定义时间格式的字段名即可。
【免责声明】重庆资讯网未标有“来源:重庆资讯网”或“重庆资讯网LOGO、水印的文字、图片、音频、视频”等稿件均为转载稿。如转载稿涉及版权等问题或您不希望出现在本站,请联系我们。