Field format specifications

The following table lists the field formatting specifications for the List Viewer's read-only text fields. This information applies to both the Date/Time Picker and the List Viewer.

Specification

Description

%A

Replaced by the national representation of the full weekday name.

%a

Replaced by the national representation of the abbreviated weekday name, where the abbreviation is the first three characters.

%B

Replaced by the national representation of the full month name.

%b

Replaced by the national representation of the abbreviated month name, where the abbreviation is the first three characters.

%C

Replaced by (year / 100) as decimal number; single digits are preceded by a zero.

%c

Replaced by the national representation of time and date (this format is similar with that produced by asctime (3)).

%D

Equivalent to ’’%m/%d/%y ’’

%d

Replaced by the day of the month as a decimal number (01 - 31 ).

%E* %O*

POSIX locale extensions. The sequences %Ec %EC %Ex %EX %Ey %EY %Od %Oe %OH %OI %Om %OM %OS %Ou %OU %OV %Ow %OW %Oy are supposed to provide alternate representations. Additionally, %Ef is implemented to represent the short month name / day order of the date, %EF represents the long month name / day order, and %OB represents alternative month names (used standalone, without the day mentioned).

%e

Replaced by the day of month as a decimal number (1-31 ); single digits are preceded by a blank.

%G

Replaced by the year as a decimal number with century. This year is the one that contains the greater part of the week (with Monday as the first day of the week).

%g

Replaced by the same year as in ’’%G ’’ but as a decimal number without century (00-99 ).

%H

Replaced by the hour (24-hour clock) as a decimal number (00-23 ).

%h

Same as date/time format as used in %b.

%I

Replaced by the hour (12-hour clock) as a decimal number (01-12 ).

%k

Replaced by the hour (24-hour clock) as a decimal number (0-23 ); single digits are preceded by a blank.

%L

Replaced by the minute as a decimal number (0-59, no leading 0).

%l

Replaced by the hour (12-hour clock) as a decimal number (1-12 ); single digits are preceded by a blank.

%M

Replaced by the minute as a decimal number (00-59 ).

%m

Replaced by the month as a decimal number (01-12 ).

%N

Replaced by the month as a decimal number (1-12).

%n

Replaced by a newline.

%O*

Same as %E *.

%P

Replaced by the national representation of first character of either "ante meridian" or * "post meridian" as appropriate.

%p

Replaced by the national representation of either "ante meridian" or * "post meridian" as appropriate.

%R

Equivalent to ’’%H:%M ’’.

%r

Equivalent to ’’%I:%M:%S %p ’’.

%S

Replaced by the second as a decimal number (00-60 ).

%T

Equivalent to ’’%H:%M:%S ’’.

%t

Replaced by a tab.

%v

Equivalent to ’’%e-%b-%Y ’’.

%X

Replaced by the national time representation.

%x

Replaced by the national date representation.

%Y

Replaced by the year with the century as a decimal number.

%y

Replaced by the year without the century as a decimal number (00-99).

%z

Replaced by the year as a decimal number (1-10).

%+

Replaced by the national representation of the date and time (the format is similar to that produced by date(1)).

%%

Replaced by "%".