How to call DedeCMS time tag pubdate?
Generally when we use Dreamweaver to build a website as a template, we will need to use various time display formats, but Dreamweaver has many time display formats, and many people don’t know how to use them specifically. . Today, Darren will give you a detailed explanation of the time tag of Dreamweaver and share some application tips with you.
Recommended learning: 梦Weavingcms
First look at the composition of the time tag of the dedecms default template:
[field:pubdate function=”MyDate(‘m-d’,@me)”/]
First of all, the field:pubdate tag is Weaving The document publishing time of the underlying template calls the tag, and the following functions represent the reformatting of the time format. From here we know that m and d represent the month and day respectively. In fact, the dede time tag function is also very powerful. It can not only express the year, month and day, but also the day of the week, hours, minutes and seconds. So what are the tags that represent them? Here are the explanations for you (note that you need to add % when using versions before 5.3):
a The abbreviation of the day of the week.
A The full name of the day of the week.
b Abbreviation of month name.
B The full name of the month.
c The local date and time are better represented as strings.
d Represents the day of the month as a number (range 00 to 31).
H Represents the hour as a 24-hour number (range 00 to 23).
I Represents the hour as a 12-hour number (range 01 to 12).
j represents the day of the year as a number (range is 001 to 366).
m The number of the month (ranging from 1 to 12).
M minutes.
p Use ‘AM’ or ‘PM’ to represent the local time.
S Number of seconds.
U The number indicates the week of the year, with the first week starting on the first Sunday.
W The number represents the week of the year, with the first week starting from the first Monday.
w Use numbers to indicate the day of the week (0 is Sunday).
x Date representation without time.
X Time representation without date.
y Two digits representing the year (range from 00 to 99).
Y Complete numerical representation of the year, i.e. four digits.
Z Time zone or name abbreviation.
The following are some commonly used time calling formats, you can refer to them:
[field:pubdate function=’strftime(“Y-m-d H:M:S”,@me)’/]
Time display style: 2013-12-25 11:11:52
[field:pubdate function=’strftime(“Y-m-d H:M:S”,@me)’/]
Time display style: 13-12-25 11:11:52
[field:pubdate function=’strftime(“m-d H:M:S”,@me)’/]
Time display style: 12-25 11:14:20
[field:pubdate function=’strftime(“m-d H:M”,@me)’/]
Time display style: 12-25 11 :14
[field:pubdate function=’strftime(“y-m-d”,@me)’/]
Time display style: 13-12-25
[field:pubdate function=’strftime(“y年m月d日”,@me)’/]
Time display style: December 25, 2013
[field:pubdate function=’strftime(“Y年m月d日 H点M分S秒”,@me)’/]
Time display style: December 2013 11:17:36 on the 25th
[field:pubdate function=’strftime(“b d, Y”,@me)’/]
Time display style: Nov 25, 2013
[field:pubdate function=’strftime(“A on b d, Y, X : Z”,@me)’/]
Time display style: Saturday on Nov 25, 2013, 11:21:06 : China Standard Time
The above tags can be directly applied to the Dreamweaver list page template. You can choose according to your own needs. Note that when using versions before dede5.3, you need to add the "%" symbol in front of the letters.
The above is the detailed content of How to call DedeCMS time tag pubdate. For more information, please follow other related articles on the PHP Chinese website!

dedecms增加多语言的方法:1、进入dedecms后台,创建封面栏目;2、将封面栏目“常规选项”的文件保存目录设置为cn或者en;3、将封面栏目“高级选项”的列表模板设置为“cn_index.htm”或者“en_index.htm”;4、单独调用每种语言的封面栏目和每种语言下的导航栏目即可。

织梦cms是用PHP语言写的。织梦CMS(DedeCMS)是一个PHP开源网站管理系统,作用是构建中小型网站;它采用PHP+MySQL技术开发,可同时使用于windows、linux、unix平台。

dedecms是PHP语言开发的;dedecms中文全称是织梦内容管理系统,是一个PHP开源网站管理系统;dedecms基于PHP和MySQL技术开发,可同时使用于Windows、Linux、Unix平台。

dedecms删除栏目的方法:1、登录后台管理;2、进入“栏目管理”,可以看到当前网站所有栏目;3、选择要删除的栏目;4、将鼠标悬停在栏目名称上,删除栏目;5、点击“确认”按钮以继续删除操作;6、删除成功。

织梦内容管理系统(DedeCMS) 以简单、实用、开源而闻名,是国内最知名的PHP开源网站管理系统,也是使用用户最多的PHP类CMS系统,在经历多年的发展,目前的版本无论在功能,还是在易用性方面,都有了长足的发展和进步。

dedecms有移动端,其移动端安装方法是:1、将DATA移到根目录外的安全设置,修改“/m/index.php”代码;2、在“更新主页HTML”中,将“选择主页模板”改为“default/index_m.htm”;3、将首页“图文资讯”的url修改为移动端链接;4、设置移动站可通过二级域名访问即可。

12 月 3 日下午,DedeCMS 创始人林学(IT 柏拉图)因罹患癌症逝世。林学生于 1979 年 10 月 10 日,于 2004 年 8 月编写的 DedeCMS 至今仍有数十万企业、个人站长使用。

火车头dedecms出现乱码解决方法:1、检查数据库编码;2、修改dedecms配置文件;3、检查浏览器编码设置;4、清理缓存和临时文件;5、寻求专业帮助。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

Dreamweaver Mac version
Visual web development tools

WebStorm Mac version
Useful JavaScript development tools

Notepad++7.3.1
Easy-to-use and free code editor

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.
