
Chapter 4 Web Server Logging
Argument | Specifies | |
|
|
|
%l | The hour | |
| digits are preceded by a blank. | |
|
|
|
%m | The number of the month in the year | |
| [1,12]; single digits are preceded by a 0. | |
|
|
|
%M | The minute [00,59]; leading 0 is | |
| permitted but not required. | |
|
|
|
%n | Inserts a new line. | |
|
|
|
%p | The equivalent of either a.m. or p.m. for | |
| the locale. | |
|
|
|
%r | The appropriate time representation in | |
| ||
|
|
|
%S | The seconds [00,61]; the range of values | |
| is [00,61] rather than [00,59] to allow | |
| for the occasional leap second and for | |
| the double leap second. | |
|
|
|
%t | Inserts a tab. | |
|
|
|
%u | The day of the week as a decimal | |
| number [1,7]. 1 represents Sunday, 2 | |
| represents Tuesday and so on. | |
|
|
|
%U | The number of the week in the year as a | |
| decimal number [00,53], with Sunday as | |
| the first day of week 1. | |
|
|
|
%w | The day of the week as a decimal | |
| number [0,6]. 0 represents Sunday. | |
|
|
|
%W | Specifies the number of the week in the | |
| year as a decimal number [00,53]. | |
| Monday is the first day of week 1. | |
|
|
|
%y | The number of the year within the | |
| century [00,99]. For example, 5 would | |
| be the fifth year of that century. | |
|
|
|
%Y | The year, including the century (for | |
| example, 1993). | |
|
|
|
Note: If you specify a conversion that does not correspond to any of the ones described in the preceding table, or to any of the modified conversion specifications listed in the next paragraph, the behavior is undefined and returns 0.
122