Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the date and time format of DEDE

Shulou Source: shulou.com Published: 2022-06-02 01:10:12 10月03日 Update

Editor to share with you what the DEDE date and time format is, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

What are the DEDE date and time formats?

DEDE date and time format

Date-time format (formatting time using the strftime () function)

Home page:

([field:pubdate function='strftime ("% m color% d", @ me)'/]) = (5-15) ([field:pubdate function='strftime ("% b% d,% Y", @ me)'/]) = (May 15, 2008)

List page:

[field:pubdate function= "GetDateTimeMK (@ me)" /] = = 2008-1-1 18:30:02 [field:pubdate function= "GetDateMK (@ me)" /] = 2008-05-15

Content page:

{dede:field name='pubdate' function='GetDateMk (@ me)'/} = 2008-05-15 {dede:field name='pubdate' function='strftime ("% b% d,% Y", @ me)'/} = May 15, 2008

Use the strftime () function to format the time:

Shorthand for% a day of the week

The full name of% A day of the week

Shorthand for% b month

Full name of% B month

C time string of standard dates

The last two digits of% C year

The day ordinal of a month expressed in decimal system% d

% D month / day / year

% e is in a two-character field, the day ordinal of a month expressed in decimal system

% F year-month-day

The last two digits of the% g year, using week-based years

% G year, using week-based year

% h abbreviated month name

% H 24-hour hours

% I 12-hour hours

The day ordinal of a year expressed in% j decimal system

Month expressed in m decimal system

The number of minutes represented by the% M ten-hour system

% n New Line character

% p equivalent display of local AM or PM

% r 12 hours of time

% R displays hours and minutes: hh:mm

Seconds of% S decimal system

% t horizontal tabs

% T display minute and second: hh:mm:ss

% u the day ordinal of the week, Monday is the first day (values from 0 to 6, Monday is 0)

% U the week ordinal of the year, with Sunday as the first day (values from 0 to 53)

% V week ordinal of a year, using a week-based year

The day of the week in decimal% w (values from 0 to 6, 0 on Sunday)

The week ordinal of% W, with Monday as the first day (values from 0 to 53)

% x standard date string

% X standard time string

% y decimal year without century (values from 0 to 99)

The decimal year of the century part of% Y belt

% zmine% Z time zone name, if the time zone name cannot be obtained, an empty character is returned.

The above is all the content of what the DEDE date and time format is, thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple vpn MySQL NVidia Xiaomi