Provide zblog template_zblog them_wordpress template download and customization

Detailed description of zblog template article publishing time format

Tianxing Studio 2022-11-23 10:15 Zblogphp Tutorial three thousand two hundred and forty-four 3 Comments


In the zblog template, there is usually an article release time. Some users want to display the month, month, and day, while others want to display the specific time, minute, and second, and some want to display the day of the week. Therefore, Tianxing Studio has specially written a function to handle this tag, and then put the specific format into the theme configuration for users to customize settings.

Set the item length as follows:

 1.png

There are two styles. One is to display the specific time, and the other is to display the countdown time [1 hour ago]. The countdown does not need to be set. The following details how to set the format for displaying the specific time.

The default display of the specific time is "Year Month Day Hour: Minute", and the corresponding format is "Y-m-d H: i". In capital, Y corresponds to the year, m corresponds to the month, d corresponds to the day, in capital, H corresponds to the hour, and i corresponds to the minute. Other time type codes are as follows:

Y - Year, four digits; For example: "1999"

Y - year, two digits; For example: "99"

Z - the day of the year; For example: "0" to "365"


F - month, full English name; For example: "January"

M - month, two digits; if less than two digits, make up zero in front; For example: "01" to "12"

N - month, two digits, if less than two digits, no zeros will be added; For example: "1" to "12"

M - month, three English letters; For example: "Jan"


T - days of the specified month; For example: "28" to "31"

D - number of days, two digits, if less than two digits, the preceding zero shall be added; For example: "01" to "31"

J - Number of days, two digits, if less than two digits, no zeros will be added; For example: "1" to "31"


H - 12 hour hour; For example: "01" to "12"

H - 24 hours; For example: "00" to "23"

G - 12 hour hour, no zero will be added if less than two digits; For example: "1" to 12“

G - 24 hour system hours, no zeros will be added if less than two digits; For example: "0" to "23"


I - minute; For example: "00" to "59"


S - seconds; For example: "00" to "59"


S - suffix plus English ordinal number, two English letters; For example: "th", "nd"

U - Total seconds

D - Day of the week, three English letters; For example: "Fri"

L - day of the week, full English name; For example: "Friday"

W - numerical day of the week, such as "0" (Sunday) to "6" (Saturday)

A - "am" or "pm"

A - "AM" or "PM"


Finally, some chestnuts:

Output on MM/DD/Y November 23, 2022;

H h i m s s s output: 10 h 45 m 23 s;


Can't find a tutorial that can solve your problem?

You can try to search or ask questions directly online. We also provide charging technical support. If you need it, you can contact us online.

Online questions Online Service

yes three Comments from netizens:

  •  visitor

    visitor 3 years ago (2022-12-01) reply

    Is there an old article time to update the plug-in

  •  Swordsman Book

    Swordsman Book Three years ago (2022-11-29) reply

    Too detailed, thanks for sharing!

    •  visitor

      visitor Two years ago (2023-02-23) reply

      thank

welcome you Comment: Cancel Reply

 Please fill in the verification code
  • Latest articles
  • Hot article ranking
  • Most Comments
Label aggregation