LC_TIME: Describe first_weekday and first_workday

This commit is contained in:
Michael Kerrisk 2008-06-17 14:11:43 +00:00
parent 16b5f7ba5d
commit 33af850128
1 changed files with 50 additions and 5 deletions

View File

@ -3,6 +3,7 @@
.\" This file is part of locale(1) which displays the settings of the
.\" current locale.
.\" Copyright (C) 1994 Jochen Hein (Hein@Student.TU-Clausthal.de)
.\" Copyright (C) 2008 Petr Baudis (pasky@suse.cz)
.\"
.\" This program is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
@ -18,7 +19,10 @@
.\" along with this program; if not, write to the Free Software
.\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
.\"
.TH LOCALE 5 1994-11-09 "Linux" "Linux User Manual"
.\" 2008-06-17 Petr Baudis <pasky@suse.cz>
.\" LC_TIME: Describe first_weekday and first_workday
.\"
.TH LOCALE 5 2008-06-17 "Linux" "Linux User Manual"
.SH NAME
locale \- Describes a locale definition file
.SH DESCRIPTION
@ -495,12 +499,17 @@ The following keywords are allowed:
.TP
.I abday
followed by a list of abbreviated weekday names.
The list starts with
Sunday or its translation.
The list starts with the first day of the week
as specified by
.I week
(Sunday by default).
.TP
.I day
followed by a list of weekday names.
The list starts with Sunday.
The list starts with the first day of the week
as specified by
.I week
(Sunday by default).
.TP
.I abmon
followed by a list of abbreviated month names.
@ -526,6 +535,42 @@ The appropriate time format.
.TP
.I t_fmt_ampm
The appropriate time format when using 12h clock format.
.TP
.I week
followed by a list of three values:
The number of days in a week (by default 7),
a date of beginning of the week (by default corresponds to Sunday),
and the minimal length of the first week in year (by default 4).
Regarding the start of the week,
.B 19971130
shall be used for Sunday and
.B 19971201
shall be used for Monday. Thus, countries using
.B 19971130
should have local Sunday name as the first day in the
.I day
list,
while countries using
.B 19971201
should have Monday translation as the first item in teh
.I day
list.
.TP
.IR first_weekday " (since glibc 2.2)"
Number of the first day from the
.I day
list to be shown in calendar applications.
The default value of
.B 1
corresponds to either Sunday or Monday depending
on the value of the second
.I week
list item.
.TP
.IR first_workday " (since glibc 2.2)"
Number of the first working day from the
.I day
list.
.PP
The
.B LC_TIME
@ -558,7 +603,7 @@ See the POSIX.2 standard for details.
.br
/usr/lib/nls/charmap/* \(em charmap-files
.SH "CONFORMING TO"
POSIX.2
POSIX.2, ISO/IEC 14652
.SH BUGS
This manual page isn't complete.
.\" .SH AUTHOR