7 | | "Locale limitations" |
| 7 | |
| 8 | {{{ |
| 9 | Per C99 compliance: |
| 10 | |
| 11 | 7.23.3.5 The strftime function |
| 12 | strftime provides a way of formatting the date and time in the appropriate locale-specific |
| 13 | fashion using the %c, %x, and %X format specifiers. More generally, it allows the programmer to |
| 14 | tailor whatever date and time format is appropriate for a given application. The facility is |
| 15 | based on the UNIX system date command. |
| 16 | |
| 17 | See §7.5 for further discussion of locale specification. For the field controlled by %P, |
| 18 | an implementation may wish to provide special symbols to mark noon and midnight. |
| 19 | |
| 20 | A new feature of C99: C99 extends the strftime specifiers, introducing %C, %D, %e, %F, %g, |
| 21 | %G, %h, %n, %r, %R, %t, %T, %u and %V, as well as the E and O modifiers. These specifiers were |
| 22 | chosen according to existing practice to cover long-standing POSIX practice and to allow all the |
| 23 | formatting available in ISO 8601. |
| 24 | }}} |
| 25 | |