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>.
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>
8 .\"WORD: transition time Á«°Ü»þ´Ö
9 .\"WORD: local time types ¥í¡¼¥«¥ë»þ´Ö·¿
10 .\"WORD: timezone abbreviatio strint ¥¿¥¤¥à¥¾¡¼¥óά¼°Ê¸»úÎó
12 .TH TZFILE 5 1996-06-05 "" "Linux Programmer's Manual"
14 .\"O tzfile \- timezone information
17 tzfile \- ¥¿¥¤¥à¥¾¡¼¥ó¤Î¾ðÊó
19 .B #include <tzfile.h>
22 .\"O The timezone information files used by
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
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,
34 ¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë¥¿¥¤¥à¥¾¡¼¥ó¾ðÊó¤Î¥Õ¥¡¥¤¥ë¤Ï¡¢
35 ¼±Ê̤Τ¿¤á¤Î magic ʸ»úÎó "TZif" ¤Ç»Ï¤Þ¤ê¡¢
36 ¾Íè¤Î¤¿¤á¤Î 16 ¥Ð¥¤¥È¤ÎͽÌóÎΰ褬³¤¡¢
38 ·¿¤Î 4 ¥Ð¥¤¥È¤ÎÃͤ¬ 6 ¸Ä³¤¯¡£
39 ¤³¤ÎÃͤϡÖɸ½à¡×¥Ð¥¤¥È¥ª¡¼¥À¡¼ (¹â°Ì¥Ð¥¤¥È¤¬Àè¤Ë½ñ¤«¤ì¤ë)
40 ¤Çµ½Ò¤µ¤ì¤ë¡£¤³¤ì¤é¤ÎÃͤϡ¢½ç¤Ë°Ê²¼¤Î¤è¤¦¤Ê¤â¤Î¤Ç¤¢¤ë¡£
43 .\"O The number of UTC/local indicators stored in the file.
44 ¥Õ¥¡¥¤¥ë¤Ëµ½Ò¤µ¤ì¤Æ¤¤¤ë UTC/local ¥¤¥ó¥¸¥±¡¼¥¿ (indicator) ¤Î¸Ä¿ô¡£
47 .\"O The number of standard/wall indicators stored in the file.
48 ¥Õ¥¡¥¤¥ë¤Ëµ½Ò¤µ¤ì¤Æ¤¤¤ë standard/wall ¥¤¥ó¥¸¥±¡¼¥¿¤Î¸Ä¿ô¡£
51 .\"O The number of leap seconds for which data is stored in the file.
52 ¥Õ¥¡¥¤¥ë¤Ëµ½Ò¤µ¤ì¤Æ¤¤¤ë±¼Éåǡ¼¥¿¤Î¸Ä¿ô¡£
55 .\"O The number of "transition times" for which data is stored
57 ¥Õ¥¡¥¤¥ë¤Ëµ½Ò¤µ¤ì¤Æ¤¤¤ë¡ÖÁ«°Ü»þ´Ö (transition time)¡×¥Ç¡¼¥¿¤Î¸Ä¿ô¡£
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 ¤Ç¤¢¤Ã¤Æ¤Ï¤¤¤±¤Ê¤¤)¡£
66 .\"O The number of characters of "timezone abbreviation strings"
67 .\"O stored in the file.
68 ¥Õ¥¡¥¤¥ë¤Ëµ½Ò¤µ¤ì¤Æ¤¤¤ë¡Ö¥¿¥¤¥à¥¾¡¼¥óά¼°Ê¸»úÎó (timezone
69 abbreviation string)¡×¤Î¸Ä¿ô¡£
71 .\"O The above header is followed by
73 .\"O four-byte values of type
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
79 .\"O at which the rules for computing local time change.
84 ·¿¤ÎÃͤ¬ (Ê£¿ô¸Ä) ³¤¯¡£¾º½ç¤ÇÊݴɤµ¤ì¤Æ¤¤¤ë¡£
85 ¤³¤ì¤é¤ÎÃͤϡÖɸ½à¡×¥Ð¥¤¥È¥ª¡¼¥À¡¼¤Çµ½Ò¤µ¤ì¤Æ¤¤¤ë¡£
88 ¤¬ÊÖ¤¹ÃÍ) ¤È¤·¤ÆÍѤ¤¤é¤ì¡¢
89 ¤½¤ì¤¾¤ì¤Ë¤ª¤¤¤Æ¥í¡¼¥«¥ë»þ´Ö¤Î·×»»¥ë¡¼¥ë¤¬Êѹ¹¤µ¤ì¤ë¡£
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
98 .\"O structures that appears next in the file;
103 ·¿¤Î 1 ¥Ð¥¤¥È¤ÎÃͤǤ¢¤ë (Ê£¿ô¸Ä³¤¯¤³¤È¤â¤¢¤ë)¡£
104 ¤³¤ÎÃͤϡ¢¥Õ¥¡¥¤¥ë¤Çµ½Ò¤µ¤ì¤Æ¤¤¤ë°Û¤Ê¤Ã¤¿¥¿¥¤¥×¤Î¡Ö¥í¡¼¥«¥ë»þ´Ö¡×¤¬¡¢
105 ¤½¤ì¤¾¤ìƱ¤¸¤è¤¦¤Ë¥¤¥ó¥Ç¥Ã¥¯¥¹¤µ¤ì¤¿Á«°Ü»þ´Ö¤Î¤É¤ì¤Ë´ØÏ¢¤Å¤±¤é¤ì¤Æ
109 ¹½Â¤ÂΤÎÇÛÎó¤ËÂФ¹¤ë¥¤¥ó¥Ç¥Ã¥¯¥¹¤È¤·¤ÆÄ󶡤µ¤ì¤Æ¤¤¤ë¡£
111 ¹½Â¤ÂΤϥե¡¥¤¥ëÃæ¤Ç¼¡¤Î°ÌÃÖ¤ËÃÖ¤«¤ì¤ë¡£
112 .\"O these structures are defined as follows:
113 ¤³¤Î¹½Â¤ÂΤϰʲ¼¤Î¤è¤¦¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë:
120 unsigned int tt_abbrind;
125 .\"O Each structure is written as a four-byte value for
129 .\"O in a standard byte order, followed by a one-byte value for
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,
139 .\"O gives the number of seconds to be added to UTC,
143 .\"O should be set by
144 .\"O .BR localtime (3),
147 .\"O serves as an index into the array of timezone abbreviation characters
150 .\"O structure(s) in the file.
151 ¤½¤ì¤¾¤ì¤Î¹½Â¤ÂΤˤª¤¤¤Æ¡¢
153 ¤Ï UTC ¤Ë²Ã¤¨¤ë¤Ù¤Éÿô¤òÍ¿¤¨¡¢
159 ¤Ë¥»¥Ã¥È¤¹¤Ù¤¤«¤É¤¦¤«¤ò¼¨¤·¡¢
161 ¤Ï¥Õ¥¡¥¤¥ëÃæ¤Ç \fIttinfo\fP ¹½Â¤ÂÎ (ÇÛÎó) ¤Î¤¢¤È¤ËÃÖ¤«¤ì¤ë
162 ¥¿¥¤¥à¥¾¡¼¥óά¼°Ê¸»úÎó¤ÎÇÛÎó¤ËÂФ¹¤ë¥¤¥ó¥Ç¥Ã¥¯¥¹¤Ç¤¢¤ë¡£
166 .\"O pairs of four-byte values, written in standard byte order;
167 .\"O the first value of each pair gives the time
170 .\"O at which a leap second occurs;
171 .\"O the second gives the
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 ¥Ð¥¤¥ÈÃͤΥڥ¢¤Ç¤¢¤ë
177 ¤¬ (Ê£¿ô¸Ä) ³¤¯¡£É¸½à¥Ð¥¤¥È¥ª¡¼¥À¡¼¤Çµ½Ò¤µ¤ì¤ë¡£
178 ¤½¤ì¤¾¤ì¤Î¥Ú¥¢¤ÎºÇ½é¤ÎÃͤϱ¼Éäε¯¤¤¿»þ¹ï¤ò (
180 ¤ÎÊÖ¤¹·Á¼°¤Ç) Í¿¤¨¡¢ÆóÈÖÌܤÎÃͤϤ½¤Î»þ¹ï¤Ë²Ã¤¨¤ë¤Ù¤±¼Éÿô¤Î
181 Á´Éÿô¤òÍ¿¤¨¤ë¡£¤³¤ì¤é¤Î¥Ú¥¢¤Ï»þ¹ï¤Î¸Å¤¤½ç¤Ëµ½Ò¤¹¤ë¡£
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.
192 ¤¬ÃÖ¤«¤ì¤ë¡£¤³¤ì¤Ï standard/wall ¥¤¥ó¥¸¥±¡¼¥¿¤Ç¡¢¤½¤ì¤¾¤ì 1 ¥Ð¥¤¥È¤Î
193 ÃͤòÊݴɤ¹¤ë¡£¤³¤ì¤é¤Ï¥í¡¼¥«¥ë»þ´Ö¤Î¥¿¥¤¥×¤Ë´ØÏ¢¤Å¤±¤é¤ì¤¿Á«°Ü»þ´Ö¤¬
194 ɸ½à»þ¹ï (standard time) ¤ÈÊÉ»þ·×»þ¹ï (wall clock time) ¤Î
195 ¤É¤Á¤é¤Ç»ØÄꤵ¤ì¤Æ¤¤¤ë¤«¤ò¼¨¤¹¡£¤Þ¤¿¤³¤ÎÃͤϡ¢
196 POSIX ¥¹¥¿¥¤¥ë¤Î¥¿¥¤¥à¥¾¡¼¥ó´Ä¶ÊÑ¿ô¤ò½èÍý¤¹¤ë¤È¤¤Ë
197 ¥¿¥¤¥à¥¾¡¼¥ó¥Õ¥¡¥¤¥ë¤¬»È¤ï¤ì¤ë¤È¤¤Ë¤âÍøÍѤµ¤ì¤ë¡£
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.
208 ¤¬ÃÖ¤«¤ì¤ë¡£¤³¤ì¤Ï UTC/local ¥¤¥ó¥¸¥±¡¼¥¿¤Ç¡¢¤½¤ì¤¾¤ì 1 ¥Ð¥¤¥È¤Î
209 ÃͤòÊݴɤ¹¤ë¡£¤³¤ì¤é¤Ï¥í¡¼¥«¥ë»þ´Ö¤Î¥¿¥¤¥×¤Ë´ØÏ¢¤Å¤±¤é¤ì¤¿Á«°Ü»þ´Ö¤¬
210 UTC ¤È¥í¡¼¥«¥ë»þ¹ï¤Î¤É¤Á¤é¤Ç»ØÄꤵ¤ì¤Æ¤¤¤ë¤«¤ò¼¨¤¹¡£¤Þ¤¿¤³¤ÎÃͤϡ¢
211 POSIX ¥¹¥¿¥¤¥ë¤Î¥¿¥¤¥à¥¾¡¼¥ó´Ä¶ÊÑ¿ô¤ò½èÍý¤¹¤ë¤È¤¤Ë
212 ¥¿¥¤¥à¥¾¡¼¥ó¥Õ¥¡¥¤¥ë¤¬»È¤ï¤ì¤ë¤È¤¤Ë¤âÍøÍѤµ¤ì¤ë¡£
215 .\"O uses the first standard-time
217 .\"O structure in the file
218 .\"O (or simply the first
220 .\"O structure in the absence of a standard-time structure)
223 .\"O is zero or the time argument is less than the first transition time recorded
228 ¤¬ 0 ¤Ç¤¢¤ë¤« time °ú¿ô¤¬¥Õ¥¡¥¤¥ë¤ËµÏ¿¤µ¤ì¤Æ¤¤¤¿ºÇ½é¤ÎÁ«°Ü»þ¹ï
229 ¤è¤ê¤â¾®¤µ¤¤¾ì¹ç¤Ë¤Ï¡¢
230 ¥Õ¥¡¥¤¥ë¤ËºÇ½é¤Ë¸½¤ì¤ëɸ½à»þ¹ï¤Î
232 ¹½Â¤ÂΤò»È¤¦ (¤Þ¤¿¤Ïɸ½à»þ¹ï¤Î¹½Â¤ÂΤ¬¤Ê¤¤¾ì¹ç¤Ï¡¢Ã±¤ËºÇ½é¤Î