Dedecms Date Time Label usage details

Source: Internet
Author: User
Keywords tags dedecms date time

Today, the Wind network http://www.ithov.com will explain the dedecms in the specific use of time labels, we use the DEDECMS process will often need to use a variety of date formats, where is the dedecms on the date time tag is how to use the specific? The following content will give you a detailed description of the use of the time tag:

[Field:pubdate function= ' strftime ("%y-%m-%d%h:%m:%s", @me) '/]
2008-11-01 11:11:52

[Field:pubdate function= ' strftime ("%y-%m-%d%h:%m:%s", @me) '/]
08-11-01 11:11:52

[Field:pubdate function= ' strftime ("%m-%d%h:%m:%s", @me) '/]
11-01 11:14:20

[Field:pubdate function= ' strftime ("%m-%d%h:%m", @me) '/]
11-01 11:14

[Field:pubdate function= ' strftime ("%y-%m-%d", @me) '/]
08-11-01

[Field:pubdate function= ' strftime ("%y year people%m month%d days", @me) '/]
November 01, 08

[Field:pubdate function= ' strftime ("%y year people%m month%d day%h point people%m minutes%s seconds", @me) '/]

November 01, 2008 11:17 36 seconds

[Field:pubdate function= ' strftime ("%b%d,%Y", @me) '/]
Modified 01, 2008

[Field:pubdate function= ' strftime ("%A on%b%d,%Y,%x:%Z", @me) '/]
Saturday on Modified 01, 2008, 11:21:06: China Standard Time

%a the abbreviation of the week.
%A the full name of the week.
The abbreviation for the%b month name.
The full name of the%B month name.
%c Local End Date time is a better representation string.
%d numbers indicate the day of the month (range 00 to 31).
%H uses a 24-hour system number to indicate the number of hours (range 00 to 23).
%I A 12-hour number is used to indicate the number of hours (ranging from 01 to 12).
%j the number of days of the year (ranging from 001 to 366).
Number of people%m months (ranging from 1 to 12).
People%m minutes.
%p indicates the local end time with ' AM ' or ' PM '.
%s Number of seconds.
The%u number is expressed as the week ordinal of the year, and the first one week begins in Sunday.
The%W number is expressed as the week ordinal of the year, and the first one week begins in Monday.
%w the number of days of the week (0 for Sunday).
%x does not contain a date representation of time.
%x does not contain a time representation of dates.
%y two digits indicates the year (range from 00 to 99).

%Y full year digits, that is, four digits.
%Z time zone or name abbreviation.
%%% character.

With the information above, you can use any combination of time formats you need in the actual process.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.