![]() |
![]() |
![]() |
![]() |
![]() |
|
Appendix D: | Formatted Time Display |
The following is a representative list of the specifications that are used in C's
strftime statements:
| Specification | Argument type | |||
| %a | abbreviated weekday name | |||
| %A | full weekday name | |||
| %b | abbreviated month name | |||
| %B | full month name | |||
| %d | day of the month | |||
| %H | hour (24 hour clock) | |||
| %I | hour (12 hour clock) | |||
| %m | month (0112) | |||
| %M | minute (0059) | |||
| %p | AM or PM | |||
| %S | second (00-59) | |||
| %y | year without century | |||
| %Y | year with century | |||
| %% | % | |||