X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=release%2Fman3%2Ftzset.3;h=5e0dc3b9d62e2b2273f49a8c6f14f04dc38b7981;hb=5e44f52645fca7581078a27bdb7408836b9b69cb;hp=fda42f63e641b05a6102f1005d37942eb7b4d7e8;hpb=a4777119b1bb1988e07149ba4510725fce25463f;p=linuxjm%2FLDP_man-pages.git diff --git a/release/man3/tzset.3 b/release/man3/tzset.3 index fda42f63..5e0dc3b9 100644 --- a/release/man3/tzset.3 +++ b/release/man3/tzset.3 @@ -73,33 +73,27 @@ glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7) 参 (UTC からの西向きの秒数) と \fIdaylight\fP (このタイムゾーンにサマータイムに関するルールがなければ 0、 サマータイム期間が一年のどこかにあれば 0 以外) も設定する。 .PP -If the \fBTZ\fP variable does not appear in the environment, the system -timezone is used. The system timezone is configured by copying, or linking, -a file in the \fBtzfile\fP(5) format to \fI/etc/localtime\fP. A timezone database -of these files may be located in the system timezone directory (see the -\fBFILES\fP section below). +\fBTZ\fP 環境変数が設定されていない場合には、 システムのタイムゾーンが使用される。 ステムのタイムゾーンを設定するには、 \fBtzfile\fP(5) +形式のファイルを \fI/etc/localtime\fP にコピーしたりリンクしたりする。 +これらのファイルがあるタイムゾーンデータベースはシステムのタイムゾーンディレクトリ (\fBファイル\fP の節を参照) に置かれている。 .PP \fBTZ\fP 環境変数が存在しているが、その値が空だったり、 以下に示す形式のどれにもあてはまらない場合は、 協定世界時 (Coordinated Universal Time: UTC) が用いられる。 .PP -The value of \fBTZ\fP can be one of two formats. The first format is a string -of characters that directly represent the timezone to be used: +\fBTZ\fP の値は以下の 2 つの形式のいずれかを取ることができる。 最初の形式は、 使用するタイムゾーンを表す文字列を直接指定する方法である。 .sp .RS std offset \fIdst\fP[\fIoffset\fP][,\fIstart\fP[\fI/time\fP],\fIend\fP[\fI/time\fP]] .RE .sp -There are no spaces in the specification. The \fIstd\fP string specifies the -name of the timezone and must be three or more alphabetic characters. The -\fIoffset\fP string immediately follows \fIstd\fP and specifies the time value to -be added to the local time to get Coordinated Universal Time (UTC). The -\fIoffset\fP is positive if the local timezone is west of the Prime Meridian -and negative if it is east. The hour must be between 0 and 24, and the -minutes and seconds 0 and 59. +この指定方法ではスペースは一切使用しない。 \fIstd\fP 文字列はタイムゾーンの名前を指定する。 アルファベットからなる 3 +文字以上の文字列でなければならない。 \fIoffset\fP 文字列は \fIstd\fP の直後に続き、 協定世界時 (UTC) を得るために +ローカルな時刻に加えなければならない時間を指定する。 \fIoffset\fP は、ローカルタイムゾーンがグリニッジ子午線 (Prime Meridian) +の西なら正の値、東なら負の値を取る。 時間 (hour) は 0 から 24 の間でなければならない。 分 (minute) と秒 (second) は +0 から 59 の間でなければならない。 .PP -The \fIdst\fP string and \fIoffset\fP specify the name and offset for the -corresponding daylight saving timezone. If the offset is omitted, it -defaults to one hour ahead of standard time. +\fIdst\fP 文字列と \fIoffset\fP は、 対応するサマータイムゾーンの名前とオフセットを指定する。 +オフセットが省略されると、デフォルトでは標準の一時間前となる。 .PP \fIstart\fP フィールドはサマータイムが有効になる時刻、 \fIend\fP フィールドは標準に戻る時刻である。 これらのフィールドは以下の形式で指定する。 @@ -131,19 +125,16 @@ M\fIm\fP.\fIw\fP.\fId\fP TZ="NZST\-12:00:00NZDT\-13:00:00,M10.1.0,M3.3.0" .fi .PP -The second format specifies that the timezone information should be read -from a file: +2 番目の形式は、タイムゾーンの情報をファイルから読み込むように指定する。 .sp .RS :[filespec] .RE .sp -If the file specification \fIfilespec\fP is omitted, or its value cannot be -interpreted, then Coordinated Universal Time (UTC) is used. If \fIfilespec\fP -is given, it specifies another \fBtzfile\fP(5)\-format file to read the timezone -information from. If \fIfilespec\fP does not begin with a \(aq/\(aq, the file -specification is relative to the system timezone directory. If the colon is -omitted each of the above \fBTZ\fP formats will be tried. +ファイルの指定 \fIfilespec\fP が省略された場合、 もしくは指定された値が解釈できない場合、 協定標準時 (UTC; Coordinated +Universal Time) が使用される。 指定された場合、 \fIfilespec\fP はタイムゾーン情報を読み出す \fBtzfile\fP(5) +形式のファイルを指定する。 \fIfilespec\fP が \(aq/\(aq で始まっていない場合には、 システムタイムゾーンディレクトリからの相対パスで +ファイルが指定されたことになる。 コロンが省略された場合には、 上記の \fBTZ\fP の各形式での解釈を試みる。 .PP 例を挙げておく。もう一度ニュージーランドの例である。 .nf @@ -153,28 +144,24 @@ omitted each of the above \fBTZ\fP formats will be tried. .SH 環境変数 .TP \fBTZ\fP -If this variable is set its value takes precedence over the system -configured timezone. +この変数が設定された場合、 その値がシステムで設定されたタイムゾーンより優先して使用される。 .TP \fBTZDIR\fP -If this variable is set its value takes precedence over the system -configured timezone database directory path. +この変数が設定された場合、 その値がシステムで設定されたタイムゾーンデータベースのディレクトリパスより優先して使用される。 .SH ファイル .TP \fB/etc/localtime\fP システムのタイムゾーンファイル。 .TP \fB/usr/share/zoneinfo/\fP -The system timezone database directory. +システムのタイムゾーンデータベースのディレクトリ。 .TP \fB/usr/share/zoneinfo/posixrules\fP -When a TZ string includes a dst timezone without anything following it, then -this file is used for the start/end rules. It is in the \fBtzfile\fP(5) -format. By default, the zoneinfo Makefile hard links it to the -\fIAmerica/New_York\fP tzfile. +TZ 文字列で dst タイムゾーンが他に何の指定なしで単独で指定された場合、 このファイルが start/end のルールに使用される。 +このファイルは \fBtzfile\fP(5) 形式である。 デフォルトでは、 ゾーン情報の Makefile でこのファイルは +\fIAmerica/New_York\fP にハードリンクされる。 .PP -Above are the current standard file locations, but they are configurable -when glibc is compiled. +上記は現在の標準のファイルの場所だが、 glibc のコンパイル時に変更できる。 .SH 準拠 SVr4, POSIX.1\-2001, 4.3BSD. .SH 注意