一种很酷的时间效果
来源:未知更新时间:2010-01-01 12:08点击:
效果如图[attachment=18774]
Copy code
[field:pubdate runphp="yes"] if((time()-@me)<(60*60*24)){@me=' <font color="#ff6600">'.strftime("%H:%M",@me).'</FONT>';} else {@me=strftime("%m-%d",@me);} [/field:pubdate]
(time()-@me)<(60*60*24)意思是24小时之内如果先改为12小时之内的文章则为 (time()-@me)<(60*60*12)
相关搜索:
