Customization Options With Time Formats In WordPress.

By | November 4, 2011

Most of the webmasters prefer to display time on their websites or blog, for particular events like post submitted, comment posted. In the previous post we saw ‘Customization Options With Date Formats In WordPress. In this post I would like to share similar type of options available to customize the Time formats. Following are the characters to be entered in the ‘Text Box’ beside the custom button option under ‘Time Format’, to get the output shown, on the actual Website or Blog.

a

Small form of character ‘A’ is used to get the appearance of ‘Abbreviation – AM and PM Ante Meridiem and Post Meridiem’ after the time as ‘character in lower case’. e.g. am, pm

A

Capital form of character ‘A’ is used to get the appearance of ‘Abbreviation – AM and PM Ante Meridiem and Post Meridiem’ after the time as ‘character in upper case’. e.g. AM, PM

g

Small form of character ‘G’ is used to get the appearance of ‘Hour in 12-hour format without leading zeros’. e.g. 1 to 12…..

h

Small form of character ‘H’ is used to get the appearance of ‘Hour in 12-hour format with leading zeros’. e.g. 01, 02 to 12…..

G

Capital form of character ‘G’ is used to get the appearance of ‘Hour in 24-hour format without leading zeros’. e.g. 1 to 23

H

Capital form of character ‘G’ is used to get the appearance of ‘Hour in 24-hour format with leading zeros’. e.g. 01, 02 to 23

i

Small form of character ‘I’ is used to get the appearance of ‘Minutes, with leading zeros’. e.g. 01, 02 to 59

s

Small form of character ‘S’ is used to get the appearance of ‘Seconds, with leading zeros’. e.g. 00, 01, 02 to 59

T

Capital form of character ‘T’ is used to get the appearance of ‘Timezone abbreviation ’. e.g. EST, MDT…..

c

Small form of character ‘C’ is used to get the appearance of ‘ISO 8601 Standard format’. e.g. 2011-12-10T18:32:10+00:00

r

Small form of character ‘R’ is used to get the appearance of ‘RFC 2822 Standard format’. e.g. Fri, 21 Oct 2011 21:01:07 +0200