OSDN Git Service

6530d9652cf6aeaadd26e079791e6b2a04c9c9da
[linuxjm/LDP_man-pages.git] / draft / man3 / getdate.3
1 .\" Copyright 2001 walter harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3 .\"     <mtk.manpages@gmail.com>
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" Modified, 2001-12-26, aeb
26 .\" 2008-09-07, mtk, Various rewrites; added an example program.
27 .\"
28 .\" Japanese Version Copyright (c) 2002 NAKANO Takeo
29 .\" and Copyright (c) 2008, Akihiro MOTOKI all rights reserved.
30 .\"
31 .\" Translated 2002-01-12, NAKANO Takeo <nakano@apm.seikei.ac.jp>
32 .\" Updated 2008-09-20, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.09
33 .\"
34 .\"WORD:        broken-down time        Í×ÁÇÊ̤λþ¹ï
35 .\"
36 .TH GETDATE 3 2008-09-07 "" "Linux Programmer's Manual"
37 .\"O .SH NAME
38 .SH Ì¾Á°
39 .\"O getdate, getdate_r \- convert a date-plus-time string to broken-down time
40 getdate, getdate_r \- ÆüÉդȻþ¹ï¤Îʸ»úÎó¤òÍ×ÁÇÊ̤λþ¹ï¤ËÊÑ´¹¤¹¤ë
41 .\"O .SH SYNOPSIS
42 .SH ½ñ¼°
43 .B "#define _XOPEN_SOURCE 500"
44 .br
45 .B "#include <time.h>"
46 .sp
47 .BI "struct tm *getdate(const char *" string );
48 .sp
49 .B "extern int getdate_err;"
50 .sp
51 .B "#define _GNU_SOURCE"
52 .br
53 .B "#include <time.h>"
54 .sp
55 .BI "int getdate_r(const char *" string ", struct tm *" res );
56 .\"O .SH DESCRIPTION
57 .SH ÀâÌÀ
58 .\"O The function
59 .\"O .BR getdate ()
60 .\"O converts a string representation of a date and time,
61 .\"O contained in the buffer pointed to by
62 .\"O .IR string ,
63 .\"O into a broken-down time.
64 .BR getdate ()
65 ´Ø¿ô¤Ï¡¢
66 .I string
67 ¤¬»Ø¤¹¥Ð¥Ã¥Õ¥¡¤Ë³ÊǼ¤µ¤ì¤¿Ê¸»úÎóɽ¸½¤ÎÆüÉդȻþ¹ï¤ò¡¢
68 Í×ÁÇÊ̤λþ¹ï (broken-down time) ¤ËÊÑ´¹¤¹¤ë¡£
69 .\"O The broken-down time is stored in a
70 .\"O .I tm
71 .\"O structure, and a pointer to this
72 .\"O structure is returned as the function result.
73 .\"O This
74 .\"O .I tm
75 .\"O structure is allocated in static storage,
76 .\"O and consequently it will be overwritten by further calls to
77 .\"O .BR getdate ().
78 Í×ÁÇÊ̤λþ¹ï¤Ï
79 .I tm
80 ¹½Â¤ÂΤ˳ÊǼ¤µ¤ì¡¢¤³¤Î¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¤¬´Ø¿ô¤Î·ë²Ì¤È¤·¤ÆÊÖ¤µ¤ì¤ë¡£
81 ¤³¤Î
82 .I tm
83 ¹½Â¤ÂΤÏÀÅŪ¤Ê¥á¥â¥êÎΰè¤Ë¤¢¤ê¡¢
84 .BR getdate ()
85 ¤Î¤½¤ì°Ê¹ß¤Î¸Æ¤Ó½Ð¤·¤Ç¾å½ñ¤­¤µ¤ì¤ë¤«¤â¤µ¤ì¤Ê¤¤¡£
86 .\"O
87 .PP
88 .\"O In contrast to
89 .\"O .BR strptime (3),
90 .\"O (which has a
91 .\"O .I format
92 .\"O argument),
93 .\"O .BR getdate ()
94 .\"O uses the formats found in the file
95 .\"O whose full pathname is given in the environment variable
96 .\"O .BR DATEMSK .
97 .\"O The first line in the file that matches the given input string
98 .\"O is used for the conversion.
99 .RI ( format
100 °ú¤­¿ô¤Ç¥Õ¥©¡¼¥Þ¥Ã¥È¤ò»ØÄꤹ¤ë)
101 .BR strptime (3)
102 ¤È¤Ï°ã¤¤¡¢
103 .BR getdate ()
104 ¤Ï´Ä¶­ÊÑ¿ô
105 .B DATEMSK
106 ¤Ç»ØÄꤵ¤ì¤¿¥Õ¥ë¥Ñ¥¹Ì¾¤Î¥Õ¥¡¥¤¥ë¤Ë½ñ¤¤¤Æ¤¢¤ë¥Õ¥©¡¼¥Þ¥Ã¥È¤òÍѤ¤¤ë¡£
107 .\"O
108 .PP
109 .\"O The matching is done case insensitively.
110 .\"O Superfluous whitespace, either in the pattern or in the string to
111 .\"O be converted, is ignored.
112 ¥Þ¥Ã¥Á¤ÎºÝ¤Ë¤ÏÂçʸ»ú¾®Ê¸»ú¤ò¶èÊ̤·¤Ê¤¤¡£
113 ¥Ñ¥¿¡¼¥óÃæ¤Ç¤âÊÑ´¹¤µ¤ì¤ëʸ»úÎóÃæ¤Ç¤â¡¢Í¾Ê¬¤Ê¶õÇòʸ»ú¤Ï̵»ë¤µ¤ì¤ë¡£
114 .\"O
115 .PP
116 .\"O The conversion specifications that a pattern can contain are those given for
117 .\"O .BR strptime (3).
118 .\"O One more conversion specification is specified in POSIX.1-2001:
119 ¥Ñ¥¿¡¼¥ó¤Ë»ØÄê¤Ç¤­¤ëÊÑ´¹»ØÄê¤Ï¡¢
120 .BR strptime (3)
121 ¤Î¤â¤Î¤ÈƱ¤¸¤Ç¤¢¤ë¡£
122 POSIX.1-2001 ¤Ç¤Ï°ì¤Ä¤ÎÊÑ´¹»ØÄ꤬Äɲäǵ¬Äꤵ¤ì¤Æ¤¤¤ë¡£
123 .TP
124 .B %Z
125 .\"O Timezone name.
126 .\"O This is not implemented in glibc.
127 ¥¿¥¤¥à¥¾¡¼¥ó¤Î̾Á°¡£
128 glibc ¤Ç¤Ï¼ÂÁõ¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
129 .LP
130 .\"O When
131 .\"O .B %Z
132 .\"O is given, the structure containing the broken-down time
133 .\"O is initialized with values corresponding to the current
134 .\"O time in the given timezone.
135 .\"O Otherwise, the structure is initialized to the broken-down time
136 .\"O corresponding to the current local time (as by a call to
137 .\"O .BR localtime (3)).
138 .B %Z
139 ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢Í×ÁÇÊ̤λþ¹ï¤ò³ÊǼ¤¹¤ë¹½Â¤ÂΤϡ¢
140 »ØÄꤵ¤ì¤¿¥¿¥¤¥à¥¾¡¼¥ó¤Ë¤ª¤±¤ë¸½ºß»þ¹ï¤ËÂбþ¤¹¤ëÃͤǽé´ü²½¤µ¤ì¤ë¡£
141 »ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢¤³¤Î¹½Â¤ÂΤϸ½ºß¤Î¥í¡¼¥«¥ë¥¿¥¤¥à¤ËÂбþ¤¹¤ë
142 Í×ÁÇÊ̤λþ¹ï¤Ç½é´ü²½¤µ¤ì¤ë
143 .RB ( localtime (3)
144 ¤ò¸Æ¤Ó½Ð¤·¤¿¾ì¹ç¤ÈƱ¤¸)¡£
145 .LP
146 .\"O When only the weekday is given, the day is taken to be the first such day
147 .\"O on or after today.
148 ÍËÆü¤À¤±¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢
149 º£Æü¤Þ¤¿¤Ïº£Æü°Ê¹ß¤Ç¡¢
150 ¤½¤ÎÍËÆü¤Ë¹çÃפ¹¤ëºÇ½é¤ÎÆü¤¬ºÎÍѤµ¤ì¤ë¡£
151 .LP
152 .\"O When only the month is given (and no year), the month is taken to
153 .\"O be the first such month equal to or after the current month.
154 .\"O If no day is given, it is the first day of the month.
155 (ǯ¤Ê¤·¤Ç) ·î¤À¤±¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢
156 º£·î¤Þ¤¿¤Ïº£·î°Ê¹ß¤Ç¡¢
157 ¤½¤Î·î¤Ë¹çÃפ¹¤ëºÇ½é¤Î·î¤¬ºÎÍѤµ¤ì¤ë¡£
158 .LP
159 .\"O When no hour, minute and second are given, the current
160 .\"O hour, minute and second are taken.
161 »þ¡¦Ê¬¡¦É䬤¤¤º¤ì¤â»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¡¢
162 ¸½ºß¤Î»þ¡¦Ê¬¡¦É䬺ÎÍѤµ¤ì¤ë¡£
163 .LP
164 .\"O If no date is given, but we know the hour, then that hour is taken
165 .\"O to be the first such hour equal to or after the current hour.
166 ÆüÉդλØÄ꤬¤Ê¤«¤Ã¤¿¤¬¡¢»þ´Ö (hour) ¤À¤±»ØÄꤵ¤ì¤¿¾ì¹ç¤Ï¡¢
167 ¸½ºß¤Î»þ´Ö¤Þ¤¿¤Ï¤½¤ì°Ê¹ß¤Ç¡¢¤½¤Î»ØÄê¤Ë¹çÃפ¹¤ëºÇ½é¤Î»þ´Ö¤¬ºÎÍѤµ¤ì¤ë¡£
168
169 .\"O .BR getdate_r ()
170 .\"O is a GNU extension that provides a reentrant version of
171 .\"O .BR getdate ().
172 .\"O Rather than using a global variable to report errors and a static buffer
173 .\"O to return the broken down time,
174 .\"O it returns errors via the function result value,
175 .\"O and returns the resulting broken-down time in the
176 .\"O caller-allocated buffer pointed to by the argument
177 .\"O .IR res .
178 .BR getdate_r ()
179 ¤Ï GNU ³ÈÄ¥¤Ç
180 .BR getdate ()
181 ¤Î¥ê¥¨¥ó¥È¥é¥ó¥ÈÈǤòÄ󶡤·¤Æ¤¤¤ë¡£
182 .BR getdate_r ()
183 ¤Ç¤Ï¡¢¥¨¥é¡¼¤òÊó¹ð¤¹¤ë¤Î¤Ë¥°¥í¡¼¥Ð¥ëÊÑ¿ô¤ò»ÈÍѤ·¤¿¤ê¡¢
184 Í×ÁÇÊ̤λþ¹ï¤òÊÖ¤¹¤Î¤ËÀÅŪ¤Ê¥Ð¥Ã¥Õ¥¡¤ò»ÈÍѤ·¤¿¤ê¤»¤º¡¢
185 ¥¨¥é¡¼¤ò´Ø¿ô¤ÎÊÖ¤êÃÍ·Ðͳ¤ÇÊó¹ð¤·¡¢Í×ÁÇÊ̤λþ¹ï¤ò
186 °ú¤­¿ô
187 .I res
188 ¤¬»Ø¤·¼¨¤¹¸Æ¤Ó½Ð¤·Â¦¤Ç³ä¤êÅö¤Æ¤¿¥Ð¥Ã¥Õ¥¡¤Ë³ÊǼ¤·¤ÆÊÖ¤¹¡£
189 .\"O .SH "RETURN VALUE"
190 .SH ÊÖ¤êÃÍ
191 .\"O When successful,
192 .\"O .BR getdate ()
193 .\"O returns a pointer to a
194 .\"O .IR "struct tm" .
195 .\"O Otherwise, it returns NULL and sets the global variable
196 .\"O .IR getdate_err
197 .\"O to one of the error numbers shown below.
198 .\"O Changes to
199 .\"O .I errno
200 .\"O are unspecified.
201 À®¸ù¤¹¤ë¤È¡¢
202 .BR getdate ()
203 ¤Ï
204 .I struct tm
205 ¤Ø¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£
206 ¼ºÇÔ¤¹¤ë¤È NULL ¤òÊÖ¤·¡¢¥°¥í¡¼¥Ð¥ëÊÑ¿ô
207 .I getdate_err
208 ¤Ë°Ê²¼¤Ë¼¨¤¹¥¨¥é¡¼ÈÖ¹æ¤Î¤¤¤º¤ì¤«°ì¤Ä¤òÀßÄꤹ¤ë¡£
209 .I errno
210 ¤ÎÊѹ¹¤Ë¤Ä¤¤¤Æ¤Ïµ¬Äꤵ¤ì¤Æ¤¤¤Ê¤¤¡£
211
212 .\"O On success
213 .\"O .BR getdate_r ()
214 .\"O returns 0;
215 .\"O on error it returns one of the error numbers shown below.
216 À®¸ù¤¹¤ë¤È¡¢
217 .BR getdate_r ()
218 ¤Ï 0 ¤òÊÖ¤¹¡£
219 ¼ºÇÔ¤¹¤ë¤È¡¢°Ê²¼¤Ë¼¨¤¹¥¨¥é¡¼ÈÖ¹æ¤Î¤¤¤º¤ì¤«°ì¤Ä¤òÊÖ¤¹¡£
220 .\"O .SH ERRORS
221 .SH ¥¨¥é¡¼
222 .\"O The following errors are returned via
223 .\"O .IR getdate_err
224 .\"O (for
225 .\"O .BR getdate ())
226 .\"O or as the function result (for
227 .\"O .BR getdate_r ()):
228 °Ê²¼¤Î¥¨¥é¡¼¤¬¡¢
229 .RB ( getdate ()
230 ¤Ç¤Ï)
231 .I getdate_err
232 ·Ðͳ¤ÇÊÖ¤µ¤ì¡¢
233 .RB ( getdate_r ()
234 ¤Ç¤Ï) ´Ø¿ô¤ÎÊÖ¤êÃͤȤ·¤ÆÊÖ¤µ¤ì¤ë¡£
235 .TP 4n
236 .B 1
237 .\"O The
238 .\"O .B DATEMSK
239 .\"O environment variable is not defined, or its value is an empty string.
240 ´Ä¶­ÊÑ¿ô
241 .B DATEMASK
242 ¤¬Ì¤ÄêµÁ¡¢¤Þ¤¿¤Ï¤½¤ÎÃͤ¬¶õʸ»úÎó¤Ç¤¢¤ë¡£
243 .TP
244 .B 2
245 .\"O The template file specified by
246 .\"O .B DATEMSK
247 .\"O cannot be opened for reading.
248 .B DATEMSK
249 ¤Ç»ØÄꤵ¤ì¤¿¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤òÆɤ߹þ¤ßÍѤ˥ª¡¼¥×¥ó¤Ç¤­¤Ê¤¤¡£
250 .TP
251 .B 3
252 .\"O Failed to get file status information.
253 ¥Õ¥¡¥¤¥ë¤Î¥¹¥Æ¡¼¥¿¥¹¾ðÊ󤬼èÆÀ¤Ç¤­¤Ê¤¤¡£
254 .\" stat()
255 .TP
256 .B 4
257 .\"O The template file is not a regular file.
258 ¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤¬Ä̾ï¤Î¥Õ¥¡¥¤¥ë¤Ç¤Ê¤¤¡£
259 .TP
260 .B 5
261 .\"O An error was encountered while reading the template file.
262 ¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤ÎÆɤ߹þ¤ßÃæ¤Ë¥¨¥é¡¼¤¬µ¯¤³¤Ã¤¿¡£
263 .TP
264 .B 6
265 .\"O Memory allocation failed (not enough memory available).
266 .\"O .\" Error 6 doesn't seem to occur in glibc
267 ¥á¥â¥ê¤Î³ä¤êÅö¤Æ¤Ë¼ºÇÔ¤·¤¿ (¥á¥â¥ê¤¬Â­¤ê¤Ê¤¤)¡£
268 .\" ¥¨¥é¡¼ 6 ¤Ï glibc ¤Ç¤ÏȯÀ¸¤·¤Ê¤¤¤è¤¦¤Ë¸«¤¨¤ë¡£
269 .TP
270 .B 7
271 .\"O There is no line in the file that matches the input.
272 ÆþÎϤ˥ޥåÁ¤·¤¿¥Õ¥¡¥¤¥ë¤Ë¡¢¹Ô¤¬´Þ¤Þ¤ì¤Æ¤¤¤Ê¤¤¡£
273 .TP
274 .B 8
275 .\"O Invalid input specification.
276 ÆþÎÏ»ØÄ꤬Àµ¤·¤¯¤Ê¤¤¡£
277 .\"O .SH ENVIRONMENT
278 .SH ´Ä¶­ÊÑ¿ô
279 .TP
280 .B DATEMSK
281 .\"O File containing format patterns.
282 ½ñ¼°¥Ñ¥¿¡¼¥ó¤ò´Þ¤à¥Õ¥¡¥¤¥ë¡£
283 .TP
284 .BR TZ ", " LC_TIME
285 .\"O Variables used by
286 .\"O .BR strptime (3).
287 .BR strptime (3)
288 ¤¬ÍѤ¤¤ëÊÑ¿ô¡£
289 .\"O .SH "CONFORMING TO"
290 .SH ½àµò
291 POSIX.1-2001.
292 .\"O .SH NOTES
293 .SH Ãí°Õ
294 .\"O The POSIX.1-2001 specification for
295 .\"O .BR strptime (3)
296 .\"O contains conversion specifications using the
297 .\"O .B %E
298 .\"O or
299 .\"O .B %O
300 .\"O modifier, while such specifications are not given for
301 .\"O .BR getdate ().
302 .\"O In glibc,
303 .\"O .BR getdate ()
304 .\"O is implemented using
305 .\"O .BR strptime (3),
306 .\"O so that precisely the same conversions are supported by both.
307 POSIX.1-2001 »ÅÍͤǤϡ¢
308 .BR strptime (3)
309 ¤Ë¤Ä¤¤¤Æ¤Ï
310 .B %E
311 ¤ä
312 .B %O
313 ¤È¤¤¤Ã¤¿½¤Àµ»Ò¤òÍѤ¤¤¿ÊÑ´¹»ØÄê¤òµ¬Äꤷ¤Æ¤¤¤ë¤¬¡¢
314 .BR getdate ()
315 ¤Ë¤Ä¤¤¤Æ¤Ï¤³¤Î¤è¤¦¤Ê½¤¾þ»Ò¤Îµ¬Äê¤Ï¤Ê¤¤¡£
316 glibc ¤Ç¤Ï¡¢
317 .BR getdate ()
318 ¤Ï
319 .BR strptime (3)
320 ¤òÍѤ¤¤Æ¼ÂÁõ¤µ¤ì¤Æ¤ª¤ê¡¢
321 ξ¼Ô¤Ç¤ÏÁ´¤¯Æ±¤¸ÊÑ´¹¤¬Î¾¼Ô¤Ç¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¡£
322 .\"O .SH EXAMPLE
323 .SH Îã
324 .\"O The program below calls
325 .\"O .BR getdate ()
326 .\"O for each of its command-line arguments,
327 .\"O and for each call displays the values in the fields of the returned
328 .\"O .I tm
329 .\"O structure.
330 .\"O The following shell session demonstrates the operation of the program:
331 °Ê²¼¤Î¥×¥í¥°¥é¥à¤Ï¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó°ú¤­¿ô¤Î¤½¤ì¤¾¤ì¤Ë¤Ä¤¤¤Æ
332 .BR getdate ()
333 ¤ò¸Æ¤Ó½Ð¤·¡¢¤½¤ì¤¾¤ì¤Ë¤Ä¤¤¤ÆÊÖ¤µ¤ì¤¿
334 .I tm
335 ¹½Â¤ÂΤΥե£¡¼¥ë¥ÉÃͤòɽ¼¨¤¹¤ë¡£
336 ¼¡¤Î¥·¥§¥ë¡¦¥»¥Ã¥·¥ç¥ó¤Ï¡¢¥×¥í¥°¥é¥à¤ÎÆ°ºîÎã¤Ç¤¢¤ë¡£
337
338 .in +4n
339 .nf
340 .RB "$" " TFILE=$PWD/tfile"
341 .RB "$" " echo \(aq%A\(aq > $TFILE " "      # Full weekday name"
342 .RB "$" " echo \(aq%T\(aq >> $TFILE" "      # ISO date (YYYY-MM-DD)"
343 .RB "$" " echo \(aq%F\(aq >> $TFILE" "      # Time (HH:MM:SS)"
344 .RB "$" " date"
345 .RB "$" " export DATEMSK=$TFILE"
346 .RB "$" " ./a.out Tuesday \(aq2009-12-28\(aq \(aq12:22:33\(aq"
347 Sun Sep  7 06:03:36 CEST 2008
348 Call 1 ("Tuesday") succeeded:
349     tm_sec   = 36
350     tm_min   = 3
351     tm_hour  = 6
352     tm_mday  = 9
353     tm_mon   = 8
354     tm_year  = 108
355     tm_wday  = 2
356     tm_yday  = 252
357     tm_isdst = 1
358 Call 2 ("2009-12-28") succeeded:
359     tm_sec   = 36
360     tm_min   = 3
361     tm_hour  = 6
362     tm_mday  = 28
363     tm_mon   = 11
364     tm_year  = 109
365     tm_wday  = 1
366     tm_yday  = 361
367     tm_isdst = 0
368 Call 3 ("12:22:33") succeeded:
369     tm_sec   = 33
370     tm_min   = 22
371     tm_hour  = 12
372     tm_mday  = 7
373     tm_mon   = 8
374     tm_year  = 108
375     tm_wday  = 0
376     tm_yday  = 250
377     tm_isdst = 1
378 .fi
379 .in
380 .\"O .SS Program source
381 .SS ¥×¥í¥°¥é¥à¤Î¥½¡¼¥¹
382 \&
383 .nf
384 #define _GNU_SOURCE 500
385 #include <time.h>
386 #include <stdio.h>
387 #include <stdlib.h>
388
389 int
390 main(int argc, char *argv[])
391 {
392     struct tm *tmp;
393     int j;
394
395     for (j = 1; j < argc; j++) {
396         tmp = getdate(argv[j]);
397
398         if (tmp == NULL) {
399             printf("Call %d failed; getdate_err = %d\\n",
400                    j, getdate_err);
401             continue;
402         }
403
404         printf("Call %d (\\"%s\\") succeeded:\\n", j, argv[j]);
405         printf("    tm_sec   = %d\\n", tmp\->tm_sec);
406         printf("    tm_min   = %d\\n", tmp\->tm_min);
407         printf("    tm_hour  = %d\\n", tmp\->tm_hour);
408         printf("    tm_mday  = %d\\n", tmp\->tm_mday);
409         printf("    tm_mon   = %d\\n", tmp\->tm_mon);
410         printf("    tm_year  = %d\\n", tmp\->tm_year);
411         printf("    tm_wday  = %d\\n", tmp\->tm_wday);
412         printf("    tm_yday  = %d\\n", tmp\->tm_yday);
413         printf("    tm_isdst = %d\\n", tmp\->tm_isdst);
414     }
415
416     exit(EXIT_SUCCESS);
417 }
418 .fi
419 .\"O .SH "SEE ALSO"
420 .SH ´ØÏ¢¹àÌÜ
421 .BR time (2),
422 .BR localtime (3),
423 .BR setlocale (3),
424 .BR strftime (3),
425 .BR strptime (3),
426 .BR feature_test_macros (7)