p The .Fa format string consists of zero or more conversion specifications and ordinary characters. All ordinary characters are copied directly into the buffer. A conversion specification consists of a percent sign `%' followed by one or two conversion characters which specify the replacement required. There must be white-space or other non-alphanumeric characters between any two conversion specifications.
p The LC_TIME category defines the locale values for the conversion specifications. The following conversion specifications are supported: l -tag -width "xxxx" t Cm %a the day of week, using the locale's weekday names; either the abbreviated or full name may be specified. t Cm %A the same as .Cm %a . t Cm %b the month, using the locale's month names; either the abbreviated or full name may be specified. t Cm %B the same as .Cm %b . t Cm %c the date and time, using the locale's date and time format. t Cm %C the century number [0,99]; leading zeros are permitted but not required. t Cm %d the day of month [1,31]; leading zeros are permitted but required. t Cm %D the date as %m/%d/%y. t Cm %e the same as .Cm %d . t Cm %h the same as .Cm %b . t Cm %H the hour (24-hour clock) [0,23]; leading zeros are permitted but not required. t Cm %I the hour (12-hour clock) [1,12]; leading zeros are permitted but not required. t Cm %j the day number of the year [1,366]; leading zeros are permitted but not required. t Cm %k the same as .Cm %H . t Cm %l the same as .Cm %I . t Cm %m the month number [1,12]; leading zeros are permitted but not required. t Cm %M the minute [0,59]; leading zeros are permitted but not required. t Cm %n any white-space t Cm %p the locale's equivalent of a.m. or p.m.. t Cm %r the time (12-hour clock) with %p, using the locale's time format. t Cm %R the time as %H:%M. t Cm %S the seconds [0,61]; leading zeros are permitted but not required. t Cm %t any white-space t Cm %T the time as %H:%M:%S. t Cm %U the week number of the year (Sunday as the first day of the week) as a decimal number [0,53]; leading zeros are permitted but not required. All days in a year preceding the first Sunday are considered to be in week 0. t Cm %w the weekday as a decimal number [0,6], with 0 representing Sunday; leading zeros are permitted but not required. t Cm %W the week number of the year (Monday as the first day of the week) as a decimal number [0,53]; leading zeros are permitted but not required. All days in a year preceding the first Monday are considered to be in week 0. t Cm %x the date, using the locale's date format. t Cm %X the time, using the locale's time format. t Cm %y the year within the 20th century [69,99] or the 21st century [0,68]; leading zeros are permitted but not required. t Cm %Y the year, including the century (i.e., 1996). t Cm %% A `%' is written. No argument is converted. .El .Ss Modified conversion specifications For compatibility, certain conversion specifications can be modified by the .Cm E and .Cm O modifier characters to indicate that an alternative format or specification should be used rather than the one normally used by the unmodified conversion specification. As there are currently neither alternative formats nor specifications supported by the system, the behavior will be as if the unmodified conversion specification were used. .Sh RETURN VALUES If successful, the .Nm function returns a pointer to the character following the last character parsed. Otherwise, a null pointer is returned. .Sh SEE ALSO .Xr strftime 3 .Sh STANDARDS The .Fn strptime function conforms to .St -xpg4 .