([field:pubdate function='strftime("%m-%d",@me)'/])
([field:pubdate function='strftime("%b %d, %Y",@me)'/])
[field:pubdate function="GetDateTimeMK(@me)"/]
[field:pubdate function="GetDateMK(@me)"/]
{dede:field name='pubdate' function='GetDateMk(@me)'/}
{dede:field name='pubdate' function='strftime("%b %d, %Y",@me)'/}
[field:pubdate runphp='yes'] $a="";"; $b=" $c=strftime("%Y年%m月%d日 %H:%M:%S","@me"); $ntime = time(); $oneday = 3600 * 24; if(($ntime - @me)<$oneday) @me = $a.$c.$b; else @me =$c; [/field:pubdate]
{dede:tagname runphp='yes'}@me = date("Y-m-d H:i:s", time());{/dede:tagname}
[field:pubdate runphp='yes'] $today = Floor(time()/(3600 * 24)); $senday= Floor(@me/(3600 * 24)); $updays = $today-$senday; if($updays==0) @me = "今日"; else @me = $updays."天前"; [/field:pubdate]
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)