quakeforge/doc/timestamps.dox

85 lines
2.7 KiB
Text
Raw Normal View History

//unfortunately, have to wrap the docs in a C comment for doxygen
// vim:tw=74:formatoptions-=l
/**
2011-08-20 11:26:41 +00:00
\page server_timestamps Server Log Timestamps
To enable time-stamped messages in the server, set the Cvar sv_timestamps to a
value other than 0. When enabled, the string Cvar sv_timefmt is used to format
the date and time.
The following special codes are interpreted inside sv_timefmt strings.
2010-08-19 14:32:37 +00:00
<dl>
<dt>\%a</dt> <dd>The abbreviated weekday name according to the current
locale.</dd>
2010-08-19 14:32:37 +00:00
<dt>\%A</dt> <dd>The full weekday name according to the current
locale.</dd>
2010-08-19 14:32:37 +00:00
<dt>\%b</dt> <dd>The abbreviated month name according to the current
locale.</dd>
2010-08-19 14:32:37 +00:00
<dt>\%B</dt> <dd>The full month name according to the current
locale.</dd>
2010-08-19 14:32:37 +00:00
<dt>\%c</dt> <dd>The preferred date and time representation for the
current locale.</dd>
2010-08-19 14:32:37 +00:00
<dt>\%d</dt> <dd>The day of the month as a decimal number (range 01
to 31).</dd>
2010-08-19 14:32:37 +00:00
<dt>\%h</dt> <dd>Equivalent to %b. (SU)</dd>
2010-08-19 14:32:37 +00:00
<dt>\%H</dt> <dd>The hour as a decimal number using a 24-hour clock
(range 00 to 23).</dd>
2010-08-19 14:32:37 +00:00
<dt>\%I</dt> <dd>The hour as a decimal number using a 12-hour clock
(range 01 to 12).</dd>
2010-08-19 14:32:37 +00:00
<dt>\%j</dt> <dd>The day of the year as a decimal number (range 001
to 366).</dd>
2010-08-19 14:32:37 +00:00
<dt>\%k</dt> <dd>The hour (24-hour clock) as a decimal number (range
0 to 23); single digits are preceded by a blank.
(See also %H.) (TZ)</dd>
2010-08-19 14:32:37 +00:00
<dt>\%m</dt> <dd>The month as a decimal number (range 01 to 12).</dd>
2010-08-19 14:32:37 +00:00
<dt>\%M</dt> <dd>The minute as a decimal number (range 00 to 59).</dd>
2010-08-19 14:32:37 +00:00
<dt>\%p</dt> <dd>Either `AM' or `PM' according to the given time
value, or the corresponding strings for the current
locale. Noon is treated as `pm' and midnight as
`am'.</dd>
2010-08-19 14:32:37 +00:00
<dt>\%S</dt> <dd>The second as a decimal number (range 00 to 61).</dd>
2010-08-19 14:32:37 +00:00
<dt>\%U</dt> <dd>The week number of the current year as a decimal
number, range 00 to 53, starting with the first
Sunday as the first day of week 01. See also %V and
%W.</dd>
2010-08-19 14:32:37 +00:00
<dt>\%w</dt> <dd>The day of the week as a decimal, range 0 to 6,
Sunday being 0. See also %u.</dd>
2010-08-19 14:32:37 +00:00
<dt>\%W</dt> <dd>The week number of the current year as a decimal
number, range 00 to 53, starting with the first
Monday as the first day of week 01.</dd>
2010-08-19 14:32:37 +00:00
<dt>\%x</dt> <dd>The preferred date representation for the current
locale without the time.</dd>
2010-08-19 14:32:37 +00:00
<dt>\%X</dt> <dd>The preferred time representation for the current
locale without the date.</dd>
2010-08-19 14:32:37 +00:00
<dt>\%y</dt> <dd>The year as a decimal number without a century
(range 00 to 99).</dd>
2010-08-19 14:32:37 +00:00
<dt>\%Y</dt> <dd>The year as a decimal number including the century.</dd>
2010-08-19 14:32:37 +00:00
<dt>\%Z</dt> <dd>The time zone name or abbreviation.</dd>
<dt>\%\%</dt> <dd>A literal `\%' character.</dd>
</dl>
*/