主要是對(duì)這篇文章的補(bǔ)充https://www.moyublog.com/notes/317.html
1、某天發(fā)布的文章
[e:loop={'news',10,18,0,'newstime>='.to_time('2010-11-11 00:00:01').' and newstime<='.to_time('2010-11-11 23:59:59').''}]
=$bqr[title]?>=date("Y-m-d H:i:s",$bqr[newstime])?>
[/e:loop]
或 (to_time 換成 to_date)
[e:loop={'news',10,18,0,'newstime>='.to_date('2016-07-31 00:00:01').' and newstime<='.to_date('2016-08-31 23:59:59').''}]
=$bqr[title]?>=date("Y-m-d H:i:s",$bqr[newstime])?>
[/e:loop]
2、某一段時(shí)間發(fā)布的文章
[e:loop={'news',10,18,0,'newstime>='.to_time('2016-07-31 00:00:01').' and newstime<='.to_time('2016-08-31 23:59:59').''}]
=$bqr[title]?>=date("Y-m-d H:i:s",$bqr[newstime])?>
[/e:loop]
或
=DoTitleFont($bqr[titlefont],esub($bqr[title],28))?> =date("Y-m-d H:i:s",$bqr[newstime])?>
版權(quán)聲明: 本站資源均來(lái)自互聯(lián)網(wǎng)或會(huì)員發(fā)布,如果侵犯了您的權(quán)益請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除!謝謝!
轉(zhuǎn)載請(qǐng)注明: 帝國(guó)CMS靈動(dòng)標(biāo)簽調(diào)用指定某個(gè)時(shí)間段的信息(日期時(shí)間歸檔)多種寫(xiě)法