POSIX-defined Format Specifiers for strftime
Go Up to strftime,_wcsftime
The following table describes the POSIX-defined specifiers for the format string used with strftime.
Note: You must define __USELOCALES__ in order to use these descriptors.
Format Specifier | Substitution |
---|---|
%C %D %e %h %n %r %t %T %u |
Century as a decimal number (00 - 99). For example, 1992 => 19 Date in the format mm/dd/yy Day of the month as a decimal number in a two-digit field with leading space (1 -31) A synonym for %b Newline character 12-hour time (01 - 12) format with am/pm string i.e. "%I:%M:%S %p" Tab character 24-hour time (00 - 23) in the format "HH:MM:SS" Weekday as a decimal number (1 Monday - 7 Sunday) |