OSDN Git Service

(split) Move Japanese translation histories after original history sections.
[linuxjm/LDP_man-pages.git] / draft / man5 / tzfile.5
1 .\" @(#)tzfile.5        7.11
2 .\" This file is in the public domain, so clarified as of
3 .\" 1996-06-05 by Arthur David Olson <arthur_david_olson@nih.gov>.
4 .\"
5 .\" Japanese Version Copyright (c) 1999 NAKANO Takeo all rights reserved.
6 .\" Translated Tue Sep 14 1999 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
7 .\" 
8 .\"WORD:        transition time         Á«°Ü»þ´Ö
9 .\"WORD:        local time types        ¥í¡¼¥«¥ë»þ´Ö·¿
10 .\"WORD:        timezone abbreviatio strint     ¥¿¥¤¥à¥¾¡¼¥óά¼°Ê¸»úÎó
11 .\"
12 .TH TZFILE 5 1996-06-05 "" "Linux Programmer's Manual"
13 .\"O .SH NAME
14 .\"O tzfile \- timezone information
15 .\"O .SH SYNOPSIS
16 .SH Ì¾Á°
17 tzfile \- ¥¿¥¤¥à¥¾¡¼¥ó¤Î¾ðÊó
18 .SH ½ñ¼°
19 .B #include <tzfile.h>
20 .\"O .SH DESCRIPTION
21 .SH ÀâÌÀ
22 .\"O The timezone information files used by
23 .\"O .BR tzset (3)
24 .\"O begin with the magic characters "TZif" to identify then as
25 .\"O timezone information files,
26 .\"O followed by sixteen bytes reserved for future use,
27 .\"O followed by six four-byte values of type
28 .\"O .IR long ,
29 .\"O written in a "standard" byte order
30 .\"O (the high-order byte of the value is written first).
31 .\"O These values are,
32 .\"O in order:
33 .BR tzset (3)
34 ¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë¥¿¥¤¥à¥¾¡¼¥ó¾ðÊó¤Î¥Õ¥¡¥¤¥ë¤Ï¡¢
35 ¼±Ê̤Τ¿¤á¤Î magic Ê¸»úÎó "TZif" ¤Ç»Ï¤Þ¤ê¡¢
36 ¾­Íè¤Î¤¿¤á¤Î 16 ¥Ð¥¤¥È¤ÎͽÌóÎΰ褬³¤­¡¢
37 .I long
38 ·¿¤Î 4 ¥Ð¥¤¥È¤ÎÃͤ¬ 6 ¸Ä³¤¯¡£
39 ¤³¤ÎÃͤϡÖɸ½à¡×¥Ð¥¤¥È¥ª¡¼¥À¡¼ (¹â°Ì¥Ð¥¤¥È¤¬Àè¤Ë½ñ¤«¤ì¤ë)
40 ¤Çµ­½Ò¤µ¤ì¤ë¡£¤³¤ì¤é¤ÎÃͤϡ¢½ç¤Ë°Ê²¼¤Î¤è¤¦¤Ê¤â¤Î¤Ç¤¢¤ë¡£
41 .TP
42 .I tzh_ttisgmtcnt
43 .\"O The number of UTC/local indicators stored in the file.
44 ¥Õ¥¡¥¤¥ë¤Ëµ­½Ò¤µ¤ì¤Æ¤¤¤ë UTC/local ¥¤¥ó¥¸¥±¡¼¥¿ (indicator) ¤Î¸Ä¿ô¡£
45 .TP
46 .I tzh_ttisstdcnt
47 .\"O The number of standard/wall indicators stored in the file.
48 ¥Õ¥¡¥¤¥ë¤Ëµ­½Ò¤µ¤ì¤Æ¤¤¤ë standard/wall ¥¤¥ó¥¸¥±¡¼¥¿¤Î¸Ä¿ô¡£
49 .TP
50 .I tzh_leapcnt
51 .\"O The number of leap seconds for which data is stored in the file.
52 ¥Õ¥¡¥¤¥ë¤Ëµ­½Ò¤µ¤ì¤Æ¤¤¤ë±¼Éåǡ¼¥¿¤Î¸Ä¿ô¡£
53 .TP
54 .I tzh_timecnt
55 .\"O The number of "transition times" for which data is stored
56 .\"O in the file.
57 ¥Õ¥¡¥¤¥ë¤Ëµ­½Ò¤µ¤ì¤Æ¤¤¤ë¡ÖÁ«°Ü»þ´Ö (transition time)¡×¥Ç¡¼¥¿¤Î¸Ä¿ô¡£
58 .TP
59 .I tzh_typecnt
60 .\"O The number of "local time types" for which data is stored
61 .\"O in the file (must not be zero).
62 ¥Õ¥¡¥¤¥ë¤Ëµ­½Ò¤µ¤ì¤Æ¤¤¤ë¡Ö¥í¡¼¥«¥ë»þ´Ö·¿ (local time types)¡×¥Ç¡¼¥¿¤Î¸Ä¿ô
63 (0 ¤Ç¤¢¤Ã¤Æ¤Ï¤¤¤±¤Ê¤¤)¡£
64 .TP
65 .I tzh_charcnt
66 .\"O The number of characters of "timezone abbreviation strings"
67 .\"O stored in the file.
68 ¥Õ¥¡¥¤¥ë¤Ëµ­½Ò¤µ¤ì¤Æ¤¤¤ë¡Ö¥¿¥¤¥à¥¾¡¼¥óά¼°Ê¸»úÎó (timezone
69 abbreviation string)¡×¤Î¸Ä¿ô¡£
70 .PP
71 .\"O The above header is followed by
72 .\"O .I tzh_timecnt
73 .\"O four-byte values of type
74 .\"O .IR long ,
75 .\"O sorted in ascending order.
76 .\"O These values are written in "standard" byte order.
77 .\"O Each is used as a transition time (as returned by
78 .\"O .BR time (2))
79 .\"O at which the rules for computing local time change.
80 ¾åµ­¤Î¥Ø¥Ã¥À¤Ë³¤¤¤Æ
81 .I tzh_timecnt
82 ¤È¤¤¤¦ 4 ¥Ð¥¤¥È¤Î
83 .I long
84 ·¿¤ÎÃͤ¬ (Ê£¿ô¸Ä) Â³¤¯¡£¾º½ç¤ÇÊݴɤµ¤ì¤Æ¤¤¤ë¡£
85 ¤³¤ì¤é¤ÎÃͤϡÖɸ½à¡×¥Ð¥¤¥È¥ª¡¼¥À¡¼¤Çµ­½Ò¤µ¤ì¤Æ¤¤¤ë¡£
86 ¤½¤ì¤¾¤ì¤ÏÁ«°Ü»þ´Ö
87 .RB ( time (2)
88 ¤¬ÊÖ¤¹ÃÍ) ¤È¤·¤ÆÍѤ¤¤é¤ì¡¢
89 ¤½¤ì¤¾¤ì¤Ë¤ª¤¤¤Æ¥í¡¼¥«¥ë»þ´Ö¤Î·×»»¥ë¡¼¥ë¤¬Êѹ¹¤µ¤ì¤ë¡£
90 .\"O Next come
91 .\"O .I tzh_timecnt
92 .\"O one-byte values of type
93 .\"O .IR "unsigned char" ;
94 .\"O each one tells which of the different types of "local time" types
95 .\"O described in the file is associated with the same-indexed transition time.
96 .\"O These values serve as indices into an array of
97 .\"O .I ttinfo
98 .\"O structures that appears next in the file;
99 ¼¡¤ËÍè¤ë¤Î¤Ï
100 .I tzh_timecnt
101 ¤Ç¡¢¤³¤ì¤Ï
102 .I "unsigned char"
103 ·¿¤Î 1 ¥Ð¥¤¥È¤ÎÃͤǤ¢¤ë (Ê£¿ô¸Ä³¤¯¤³¤È¤â¤¢¤ë)¡£
104 ¤³¤ÎÃͤϡ¢¥Õ¥¡¥¤¥ë¤Çµ­½Ò¤µ¤ì¤Æ¤¤¤ë°Û¤Ê¤Ã¤¿¥¿¥¤¥×¤Î¡Ö¥í¡¼¥«¥ë»þ´Ö¡×¤¬¡¢
105 ¤½¤ì¤¾¤ìƱ¤¸¤è¤¦¤Ë¥¤¥ó¥Ç¥Ã¥¯¥¹¤µ¤ì¤¿Á«°Ü»þ´Ö¤Î¤É¤ì¤Ë´ØÏ¢¤Å¤±¤é¤ì¤Æ
106 ¤¤¤ë¤«¤ò¼¨¤¹¡£
107 ¤³¤ì¤é¤ÎÃͤÏ
108 .I ttinifo
109 ¹½Â¤ÂΤÎÇÛÎó¤ËÂФ¹¤ë¥¤¥ó¥Ç¥Ã¥¯¥¹¤È¤·¤ÆÄ󶡤µ¤ì¤Æ¤¤¤ë¡£
110 .I ttinfo
111 ¹½Â¤ÂΤϥե¡¥¤¥ëÃæ¤Ç¼¡¤Î°ÌÃÖ¤ËÃÖ¤«¤ì¤ë¡£
112 .\"O these structures are defined as follows:
113 ¤³¤Î¹½Â¤ÂΤϰʲ¼¤Î¤è¤¦¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë:
114 .in +4n
115 .sp
116 .nf
117 struct ttinfo {
118     long         tt_gmtoff;
119     int          tt_isdst;
120     unsigned int tt_abbrind;
121 };
122 .in
123 .fi
124 .sp
125 .\"O Each structure is written as a four-byte value for
126 .\"O .I tt_gmtoff
127 .\"O of type
128 .\"O .B long ,
129 .\"O in a standard byte order, followed by a one-byte value for
130 .\"O .I tt_isdst
131 .\"O and a one-byte value for
132 .\"O .IR tt_abbrind .
133 ¤½¤ì¤¾¤ì¤Î¹½Â¤ÂΤϡ¢ 4 ¥Ð¥¤¥È¤Î \fIlong\fP ·¿¤ÎÃÍ \fItt_gmtoff\fP¡¢
134 1 ¥Ð¥¤¥È¤ÎÃÍ \fItt_isdst\fP,
135 1 ¥Ð¥¤¥È¤ÎÃÍ \fItt_abbrind\fP ¤«¤é¹½À®¤µ¤ì¤ë¡£
136 .\"NAKANO int ¤Ê¤Î¤Ë 4 ¥Ð¥¤¥È¤Ê¤Î¡© 
137 .\"O In each structure,
138 .\"O .I tt_gmtoff
139 .\"O gives the number of seconds to be added to UTC,
140 .\"O .I tt_isdst
141 .\"O tells whether
142 .\"O .I tm_isdst
143 .\"O should be set by
144 .\"O .BR localtime (3),
145 .\"O and
146 .\"O .I tt_abbrind
147 .\"O serves as an index into the array of timezone abbreviation characters
148 .\"O that follow the
149 .\"O .I ttinfo
150 .\"O structure(s) in the file.
151 ¤½¤ì¤¾¤ì¤Î¹½Â¤ÂΤˤª¤¤¤Æ¡¢
152 .I tt_gmtoff
153 ¤Ï UTC ¤Ë²Ã¤¨¤ë¤Ù¤­Éÿô¤òÍ¿¤¨¡¢
154 .I tt_isdst
155 ¤Ï
156 .I tm_isdst
157 ¤ò
158 .BR localtime (3)
159 ¤Ë¥»¥Ã¥È¤¹¤Ù¤­¤«¤É¤¦¤«¤ò¼¨¤·¡¢
160 .I tt_abbrind
161 ¤Ï¥Õ¥¡¥¤¥ëÃæ¤Ç \fIttinfo\fP ¹½Â¤ÂΠ(ÇÛÎó) ¤Î¤¢¤È¤ËÃÖ¤«¤ì¤ë
162 ¥¿¥¤¥à¥¾¡¼¥óά¼°Ê¸»úÎó¤ÎÇÛÎó¤ËÂФ¹¤ë¥¤¥ó¥Ç¥Ã¥¯¥¹¤Ç¤¢¤ë¡£
163 .PP
164 .\"O Then there are
165 .\"O .I tzh_leapcnt
166 .\"O pairs of four-byte values, written in standard byte order;
167 .\"O the first value of each pair gives the time
168 .\"O (as returned by
169 .\"O .IR time(2))
170 .\"O at which a leap second occurs;
171 .\"O the second gives the
172 .\"O .I total
173 .\"O number of leap seconds to be applied after the given time.
174 .\"O The pairs of values are sorted in ascending order by time.
175 ¼¡¤Ë¤Ï 4 ¥Ð¥¤¥ÈÃͤΥڥ¢¤Ç¤¢¤ë
176 .I tzh_leapcnt
177 ¤¬ (Ê£¿ô¸Ä) Â³¤¯¡£É¸½à¥Ð¥¤¥È¥ª¡¼¥À¡¼¤Çµ­½Ò¤µ¤ì¤ë¡£
178 ¤½¤ì¤¾¤ì¤Î¥Ú¥¢¤ÎºÇ½é¤ÎÃͤϱ¼Éäε¯¤­¤¿»þ¹ï¤ò (
179 .IR time (2)
180 ¤ÎÊÖ¤¹·Á¼°¤Ç) Í¿¤¨¡¢ÆóÈÖÌܤÎÃͤϤ½¤Î»þ¹ï¤Ë²Ã¤¨¤ë¤Ù¤­±¼Éÿô¤Î
181 Á´Éÿô¤òÍ¿¤¨¤ë¡£¤³¤ì¤é¤Î¥Ú¥¢¤Ï»þ¹ï¤Î¸Å¤¤½ç¤Ëµ­½Ò¤¹¤ë¡£
182 .PP
183 .\"O Then there are
184 .\"O .I tzh_ttisstdcnt
185 .\"O standard/wall indicators, each stored as a one-byte value;
186 .\"O they tell whether the transition times associated with local time types
187 .\"O were specified as standard time or wall clock time,
188 .\"O and are used when a timezone file is used in handling POSIX-style
189 .\"O timezone environment variables.
190 ¼¡¤Ë¤Ï
191 .I tzh_ttisstdcnt
192 ¤¬ÃÖ¤«¤ì¤ë¡£¤³¤ì¤Ï standard/wall ¥¤¥ó¥¸¥±¡¼¥¿¤Ç¡¢¤½¤ì¤¾¤ì 1 ¥Ð¥¤¥È¤Î
193 ÃͤòÊݴɤ¹¤ë¡£¤³¤ì¤é¤Ï¥í¡¼¥«¥ë»þ´Ö¤Î¥¿¥¤¥×¤Ë´ØÏ¢¤Å¤±¤é¤ì¤¿Á«°Ü»þ´Ö¤¬
194 ɸ½à»þ¹ï (standard time) ¤ÈÊÉ»þ·×»þ¹ï (wall clock time) ¤Î
195 ¤É¤Á¤é¤Ç»ØÄꤵ¤ì¤Æ¤¤¤ë¤«¤ò¼¨¤¹¡£¤Þ¤¿¤³¤ÎÃͤϡ¢
196 POSIX ¥¹¥¿¥¤¥ë¤Î¥¿¥¤¥à¥¾¡¼¥ó´Ä¶­ÊÑ¿ô¤ò½èÍý¤¹¤ë¤È¤­¤Ë
197 ¥¿¥¤¥à¥¾¡¼¥ó¥Õ¥¡¥¤¥ë¤¬»È¤ï¤ì¤ë¤È¤­¤Ë¤âÍøÍѤµ¤ì¤ë¡£
198 .PP
199 .\"O Finally, there are
200 .\"O .I tzh_ttisgmtcnt
201 .\"O UTC/local indicators, each stored as a one-byte value;
202 .\"O they tell whether the transition times associated with local time types
203 .\"O were specified as UTC or local time,
204 .\"O and are used when a timezone file is used in handling POSIX-style
205 .\"O timezone environment variables.
206 ºÇ¸å¤Ë
207 .I tzh_ttisgmtcnt
208 ¤¬ÃÖ¤«¤ì¤ë¡£¤³¤ì¤Ï UTC/local ¥¤¥ó¥¸¥±¡¼¥¿¤Ç¡¢¤½¤ì¤¾¤ì 1 ¥Ð¥¤¥È¤Î
209 ÃͤòÊݴɤ¹¤ë¡£¤³¤ì¤é¤Ï¥í¡¼¥«¥ë»þ´Ö¤Î¥¿¥¤¥×¤Ë´ØÏ¢¤Å¤±¤é¤ì¤¿Á«°Ü»þ´Ö¤¬
210 UTC ¤È¥í¡¼¥«¥ë»þ¹ï¤Î¤É¤Á¤é¤Ç»ØÄꤵ¤ì¤Æ¤¤¤ë¤«¤ò¼¨¤¹¡£¤Þ¤¿¤³¤ÎÃͤϡ¢
211 POSIX ¥¹¥¿¥¤¥ë¤Î¥¿¥¤¥à¥¾¡¼¥ó´Ä¶­ÊÑ¿ô¤ò½èÍý¤¹¤ë¤È¤­¤Ë
212 ¥¿¥¤¥à¥¾¡¼¥ó¥Õ¥¡¥¤¥ë¤¬»È¤ï¤ì¤ë¤È¤­¤Ë¤âÍøÍѤµ¤ì¤ë¡£
213 .PP
214 .\"O .I Localtime
215 .\"O uses the first standard-time
216 .\"O .I ttinfo
217 .\"O structure in the file
218 .\"O (or simply the first
219 .\"O .I ttinfo
220 .\"O structure in the absence of a standard-time structure)
221 .\"O if either
222 .\"O .I tzh_timecnt
223 .\"O is zero or the time argument is less than the first transition time recorded
224 .\"O in the file.
225 .I localtime
226 ¤Ï¡¢
227 .I tzh_timeout
228 ¤¬ 0 ¤Ç¤¢¤ë¤« time °ú¿ô¤¬¥Õ¥¡¥¤¥ë¤Ëµ­Ï¿¤µ¤ì¤Æ¤¤¤¿ºÇ½é¤ÎÁ«°Ü»þ¹ï
229 ¤è¤ê¤â¾®¤µ¤¤¾ì¹ç¤Ë¤Ï¡¢
230 ¥Õ¥¡¥¤¥ë¤ËºÇ½é¤Ë¸½¤ì¤ëɸ½à»þ¹ï¤Î
231 .I ttinfo
232 ¹½Â¤ÂΤò»È¤¦ (¤Þ¤¿¤Ïɸ½à»þ¹ï¤Î¹½Â¤ÂΤ¬¤Ê¤¤¾ì¹ç¤Ï¡¢Ã±¤ËºÇ½é¤Î
233 .I ttinfo
234 ¹½Â¤ÂΤò»È¤¦)¡£