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 ("%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.
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.