下面是一些调用时间标签的格式
[field:pubdate function="MyDate('Y-m-d',@me)"/]
输出:2016-10-08
[field:pubdate function=MyDate('m-d',@me)/]
输出:10-08
[field:pubdate function=MyDate('y-m-d',@me)/]
输出:16-10-08
[field:pubdate function='strftime("%y-%m-%d %H:%M:%S",@me)'/]
输出:16-10-08 10:55:23
[field:pubdate function='strftime("%m-%d %H:%M:%S",@me)'/]
输出:10-08 10:55:23
[field:pubdate function='strftime("%Y-%m-%d %H:%M:%S",@me)'/]
输出:2016-10-08 10:55:23
文章页调用时间的方式:
{dede:tagname runphp='yes'}@me = date("Y-m-d H:i:s", time());{/dede:tagname}
2016-10-08 16:22:51