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 one thousand six hundred and thirty-four 3 Comments


Zblog template In general, there is 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 A function is specially written to handle this tag, and then the specific format is put into the theme configuration for user-defined settings.

Set the item length as follows:

 Zblog template article publishing time format detailed description zblog template publishing time time format zblogphp tutorial page 1

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 specific time is "Year Month Day Hour: Minute", and the corresponding format is "Y-m-d H: i". In case of capital Y, it corresponds to year, m corresponds to month, d corresponds to day, in case of capital H, it corresponds to hour, and i corresponds to minute. The codes of other time types 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

Related recommendations

yes three Comments from netizens:

  •  visitor

    visitor 1 year ago (2022-12-01) reply

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

  •  Swordsman Book

    Swordsman Book One year ago (2022-11-29) reply

    Too detailed, thanks for sharing!

    •  visitor

      visitor 1 year 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
  • Sign in
  • Registered account Forgot your password?
  • register
  • Already have an account? Direct login Forgot your password?
  • Social account login