格式化时间
-
DedeCMS中的时间格式有哪些不同的表示方法?
DedeCMS的时间格式汇总主要包括以下几种:,,1. 日期型:{dede:field.pubdate function=’strftime(“%Y%m%d”,@me)’/},2. 时间型:{dede:field.pubdate function=’strftime(“%H:%M:%S”,@me)’/},3. 日期+时间型:{dede:field.pubdate function=’strftime(“%Y%m%d %H:%M:%S”,@me)’/},4. 年月日时分秒型:{dede:field.pubdate function=’strftime(“%Y年%m月%d日%H时%M分%S秒”,@me)’/},5. 年月日型:{dede:field.pubdate function=’strftime(“%Y年%m月%d日”,@me)’/},6. 年月日周型:{dede:field.pubdate function=’strftime(“%Y年%m月%d日 星期几”,@me)’/},7. 年月日中文周型:{dede:field.pubdate function=’strftime(“%Y年%m月%d日 %w”,@me)’/},8. 年月日数字周型:{dede:field.pubdate function=’strftime(“%Y年%m月%d日 %U”,@me)’/},9. 年月日英文周型:{dede:field.pubdate function=’strftime(“%Y年%m月%d日 %A”,@me)’/},10. 年月日简写英文周型:{dede:field.pubdate function=’strftime(“%Y年%m月%d日 %a”,@me)’/},,以上就是DedeCMS的常用时间格式汇总,可以根据需要进行选择。