Debian Codegraph @

templates/man3/ctime.3.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:21+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "ctime"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid ""
50 "asctime, ctime, gmtime, localtime, mktime, asctime_r, ctime_r, gmtime_r, "
51 "localtime_r - transform date and time to broken-down time or ASCII"
52 msgstr ""
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr ""
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr ""
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr ""
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid "B<#include E<lt>time.hE<gt>>\n"
79 msgstr ""
80
81 #. type: Plain text
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid ""
86 "B<char *asctime(const struct tm *>I<tm>B<);>\n"
87 "B<char *asctime_r(const struct tm *restrict >I<tm>B<,>\n"
88 "B< char >I<buf>B<[restrict 26]);>\n"
89 msgstr ""
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid ""
96 "B<char *ctime(const time_t *>I<timep>B<);>\n"
97 "B<char *ctime_r(const time_t *restrict >I<timep>B<,>\n"
98 "B< char >I<buf>B<[restrict 26]);>\n"
99 msgstr ""
100
101 #. type: Plain text
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 #, no-wrap
105 msgid ""
106 "B<struct tm *gmtime(const time_t *>I<timep>B<);>\n"
107 "B<struct tm *gmtime_r(const time_t *restrict >I<timep>B<,>\n"
108 "B< struct tm *restrict >I<result>B<);>\n"
109 msgstr ""
110
111 #. type: Plain text
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 #, no-wrap
115 msgid ""
116 "B<struct tm *localtime(const time_t *>I<timep>B<);>\n"
117 "B<struct tm *localtime_r(const time_t *restrict >I<timep>B<,>\n"
118 "B< struct tm *restrict >I<result>B<);>\n"
119 msgstr ""
120
121 #. type: Plain text
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 #, no-wrap
125 msgid "B<time_t mktime(struct tm *>I<tm>B<);>\n"
126 msgstr ""
127
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 msgid ""
132 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
133 msgstr ""
134
135 #. type: Plain text
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 msgid "B<asctime_r>(), B<ctime_r>(), B<gmtime_r>(), B<localtime_r>():"
139 msgstr ""
140
141 #. type: Plain text
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 #, no-wrap
145 msgid ""
146 " _POSIX_C_SOURCE\n"
147 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
148 msgstr ""
149
150 #. type: SH
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 #, no-wrap
154 msgid "DESCRIPTION"
155 msgstr ""
156
157 #. type: Plain text
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 msgid ""
161 "The B<ctime>(), B<gmtime>(), and B<localtime>() functions all take an "
162 "argument of data type I<time_t>, which represents calendar time. When "
163 "interpreted as an absolute time value, it represents the number of seconds "
164 "elapsed since the Epoch, 1970-01-01 00:00:00 +0000 (UTC)."
165 msgstr ""
166
167 #. type: Plain text
168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
170 msgid ""
171 "The B<asctime>() and B<mktime>() functions both take an argument "
172 "representing broken-down time, which is a representation separated into "
173 "year, month, day, and so on."
174 msgstr ""
175
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 msgid ""
180 "Broken-down time is stored in the structure I<tm>, described in B<tm>(3type)."
181 msgstr ""
182
183 #. type: Plain text
184 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
185 #: opensuse-tumbleweed
186 msgid ""
187 "The call B<ctime(>I<t>B<)> is equivalent to I<asctime(localtime(t))>. It "
188 "converts the calendar time I<t> into a null-terminated string of the form"
189 msgstr ""
190
191 #. type: Plain text
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 #, no-wrap
195 msgid "\"Wed Jun 30 21:49:08 1993\\[rs]n\"\n"
196 msgstr ""
197
198 #. type: Plain text
199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
201 msgid ""
202 "The abbreviations for the days of the week are \"Sun\", \"Mon\", \"Tue\", "
203 "\"Wed\", \"Thu\", \"Fri\", and \"Sat\". The abbreviations for the months "
204 "are \"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", "
205 "\"Sep\", \"Oct\", \"Nov\", and \"Dec\". The return value points to a "
206 "statically allocated string which might be overwritten by subsequent calls "
207 "to any of the date and time functions. The function also sets the external "
208 "variables I<tzname>, I<timezone>, and I<daylight> as if it called "
209 "B<tzset>(3). The reentrant version B<ctime_r>() does the same, but stores "
210 "the string in a user-supplied buffer which should have room for at least 26 "
211 "bytes. It need not set I<tzname>, I<timezone>, and I<daylight>."
212 msgstr ""
213
214 #. type: Plain text
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 msgid ""
218 "The B<gmtime>() function converts the calendar time I<timep> to broken-down "
219 "time representation, expressed in Coordinated Universal Time (UTC). It may "
220 "return NULL when the year does not fit into an integer. The return value "
221 "points to a statically allocated struct which might be overwritten by "
222 "subsequent calls to any of the date and time functions. The B<gmtime_r>() "
223 "function does the same, but stores the data in a user-supplied struct."
224 msgstr ""
225
226 #. type: Plain text
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 msgid ""
230 "The B<localtime>() function converts the calendar time I<timep> to broken-"
231 "down time representation, expressed relative to the user's specified "
232 "timezone. The function also sets the external variables I<tzname>, "
233 "I<timezone>, and I<daylight> as if it called B<tzset>(3). The return value "
234 "points to a statically allocated struct which might be overwritten by "
235 "subsequent calls to any of the date and time functions. The "
236 "B<localtime_r>() function does the same, but stores the data in a user-"
237 "supplied struct. It need not set I<tzname>, I<timezone>, and I<daylight>."
238 msgstr ""
239
240 #. type: Plain text
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 msgid ""
244 "The B<asctime>() function converts the broken-down time value I<tm> into a "
245 "null-terminated string with the same format as B<ctime>(). The return value "
246 "points to a statically allocated string which might be overwritten by "
247 "subsequent calls to any of the date and time functions. The B<asctime_r>() "
248 "function does the same, but stores the string in a user-supplied buffer "
249 "which should have room for at least 26 bytes."
250 msgstr ""
251
252 #. type: Plain text
253 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
254 #: opensuse-leap-16-1 opensuse-tumbleweed
255 msgid ""
256 "The B<mktime>() function converts a broken-down time structure, expressed "
257 "as local time, to calendar time representation. The function ignores the "
258 "values supplied by the caller in the I<tm_wday> and I<tm_yday> fields. The "
259 "value specified in the I<tm_isdst> field informs B<mktime>() whether or not "
260 "daylight saving time (DST) is in effect for the time supplied in the I<tm> "
261 "structure: a positive value means DST is in effect; zero means that DST is "
262 "not in effect; and a negative value means that B<mktime>() should (use "
263 "timezone information and system databases to) attempt to determine whether "
264 "DST is in effect at the specified time. See B<timegm>(3) for a UTC "
265 "equivalent of this function."
266 msgstr ""
267
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 msgid ""
272 "The B<mktime>() function modifies the fields of the I<tm> structure as "
273 "follows: I<tm_wday> and I<tm_yday> are set to values determined from the "
274 "contents of the other fields; if structure members are outside their valid "
275 "interval, they will be normalized (so that, for example, 40 October is "
276 "changed into 9 November); I<tm_isdst> is set (regardless of its initial "
277 "value) to a positive value or to 0, respectively, to indicate whether DST "
278 "is or is not in effect at the specified time. The function also sets the "
279 "external variables I<tzname>, I<timezone>, and I<daylight> as if it called "
280 "B<tzset>(3)."
281 msgstr ""
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 msgid ""
287 "If the specified broken-down time cannot be represented as calendar time "
288 "(seconds since the Epoch), B<mktime>() returns I<(time_t)\\ -1> and does "
289 "not alter the members of the broken-down time structure."
290 msgstr ""
291
292 #. type: SH
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 #, no-wrap
296 msgid "RETURN VALUE"
297 msgstr ""
298
299 #. type: Plain text
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 msgid ""
303 "On success, B<gmtime>() and B<localtime>() return a pointer to a "
304 "I<struct\\ tm>."
305 msgstr ""
306
307 #. type: Plain text
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 msgid ""
311 "On success, B<gmtime_r>() and B<localtime_r>() return the address of the "
312 "structure pointed to by I<result>."
313 msgstr ""
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 msgid "On success, B<asctime>() and B<ctime>() return a pointer to a string."
319 msgstr ""
320
321 #. type: Plain text
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 msgid ""
325 "On success, B<asctime_r>() and B<ctime_r>() return a pointer to the string "
326 "pointed to by I<buf>."
327 msgstr ""
328
329 #. type: Plain text
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 msgid ""
333 "On success, B<mktime>() returns the calendar time (seconds since the "
334 "Epoch), expressed as a value of type I<time_t>."
335 msgstr ""
336
337 #. type: Plain text
338 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
339 #: opensuse-leap-16-1 opensuse-tumbleweed
340 msgid ""
341 "On error, B<mktime>() returns the value I<(time_t)\\ -1>, and leaves the "
342 "I<tm-E<gt>tm_wday> member unmodified. The remaining functions return NULL "
343 "on error. On error, I<errno> is set to indicate the error."
344 msgstr ""
345
346 #. type: SH
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 #, no-wrap
350 msgid "ERRORS"
351 msgstr ""
352
353 #. type: TP
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 #, no-wrap
357 msgid "B<EOVERFLOW>"
358 msgstr ""
359
360 #. type: Plain text
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 msgid "The result cannot be represented."
364 msgstr ""
365
366 #. type: SH
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 #, no-wrap
370 msgid "ATTRIBUTES"
371 msgstr ""
372
373 #. type: Plain text
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 msgid ""
377 "For an explanation of the terms used in this section, see B<attributes>(7)."
378 msgstr ""
379
380 #. type: tbl table
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 #, no-wrap
384 msgid "Interface"
385 msgstr ""
386
387 #. type: tbl table
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 #, no-wrap
391 msgid "Attribute"
392 msgstr ""
393
394 #. type: tbl table
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid "Value"
399 msgstr ""
400
401 #. type: tbl table
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 #, no-wrap
405 msgid ".na\n"
406 msgstr ""
407
408 #. type: tbl table
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 #, no-wrap
412 msgid ".nh\n"
413 msgstr ""
414
415 #. type: TP
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 #, no-wrap
419 msgid "B<asctime>()"
420 msgstr ""
421
422 #. #-#-#-#-# archlinux: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
423 #. type: SS
424 #. #-#-#-#-# debian-trixie: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
425 #. type: tbl table
426 #. #-#-#-#-# debian-unstable: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
427 #. type: SS
428 #. #-#-#-#-# fedora-44: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
429 #. type: SS
430 #. #-#-#-#-# fedora-rawhide: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
431 #. type: SS
432 #. #-#-#-#-# mageia-cauldron: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
433 #. type: SS
434 #. #-#-#-#-# opensuse-leap-16-1: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
435 #. type: SS
436 #. #-#-#-#-# opensuse-tumbleweed: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
437 #. type: SS
438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
440 #, no-wrap
441 msgid "Thread safety"
442 msgstr ""
443
444 #. type: tbl table
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 #, no-wrap
448 msgid "MT-Unsafe race:asctime locale"
449 msgstr ""
450
451 #. type: TP
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 #, no-wrap
455 msgid "B<asctime_r>()"
456 msgstr ""
457
458 #. type: tbl table
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 #, no-wrap
462 msgid "MT-Safe locale"
463 msgstr ""
464
465 #. type: TQ
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 #, no-wrap
469 msgid "B<ctime>()"
470 msgstr ""
471
472 #. type: tbl table
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 #, no-wrap
476 msgid ""
477 "MT-Unsafe race:tmbuf\n"
478 "race:asctime env locale"
479 msgstr ""
480
481 #. type: tbl table
482 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
483 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
484 #, no-wrap
485 msgid ""
486 "B<ctime_r>(),\n"
487 "B<gmtime_r>(),\n"
488 "B<localtime_r>(),\n"
489 "B<mktime>()"
490 msgstr ""
491
492 #. type: tbl table
493 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
494 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
495 #, no-wrap
496 msgid "MT-Safe env locale"
497 msgstr ""
498
499 #. type: tbl table
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 #, no-wrap
503 msgid ""
504 "B<gmtime>(),\n"
505 "B<localtime>()"
506 msgstr ""
507
508 #. type: tbl table
509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
511 #, no-wrap
512 msgid "MT-Unsafe race:tmbuf env locale"
513 msgstr ""
514
515 #. type: SH
516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
518 #, no-wrap
519 msgid "VERSIONS"
520 msgstr ""
521
522 #. type: Plain text
523 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
524 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
525 msgid ""
526 "POSIX doesn't specify the parameters of B<ctime_r>() to be I<restrict>; "
527 "that is specific to glibc."
528 msgstr ""
529
530 #. type: Plain text
531 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
532 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
533 msgid ""
534 "In many implementations, including glibc, a 0 in I<tm_mday> is interpreted "
535 "as meaning the last day of the preceding month."
536 msgstr ""
537
538 #. See http://thread.gmane.org/gmane.comp.time.tz/2034/
539 #. type: Plain text
540 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
541 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
542 msgid ""
543 "According to POSIX.1, B<localtime>() is required to behave as though "
544 "B<tzset>(3) was called, while B<localtime_r>() does not have this "
545 "requirement. For portable code, B<tzset>(3) should be called before "
546 "B<localtime_r>()."
547 msgstr ""
548
549 #. type: SH
550 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
551 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
552 #, no-wrap
553 msgid "STANDARDS"
554 msgstr ""
555
556 #. type: TP
557 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
558 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
559 #, no-wrap
560 msgid "B<gmtime>()"
561 msgstr ""
562
563 #. type: TQ
564 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
565 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
566 #, no-wrap
567 msgid "B<localtime>()"
568 msgstr ""
569
570 #. type: TQ
571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
573 #, no-wrap
574 msgid "B<mktime>()"
575 msgstr ""
576
577 #. type: Plain text
578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
580 msgid "C23, POSIX.1-2024."
581 msgstr ""
582
583 #. type: TP
584 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
585 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
586 #, no-wrap
587 msgid "B<gmtime_r>()"
588 msgstr ""
589
590 #. type: TQ
591 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
592 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
593 #, no-wrap
594 msgid "B<localtime_r>()"
595 msgstr ""
596
597 #. type: Plain text
598 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
599 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
600 msgid "POSIX.1-2024."
601 msgstr ""
602
603 #. type: TQ
604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
606 #, no-wrap
607 msgid "B<ctime_r>()"
608 msgstr ""
609
610 #. type: Plain text
611 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
612 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
613 msgid "None."
614 msgstr ""
615
616 #. type: SH
617 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
618 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
619 #, no-wrap
620 msgid "HISTORY"
621 msgstr ""
622
623 #. type: Plain text
624 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
625 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
626 msgid "C89, POSIX.1-1988."
627 msgstr ""
628
629 #. type: Plain text
630 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
631 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
632 msgid ""
633 "C89, POSIX.1-1988. Marked obsolescent in C23 and in POSIX.1-2008 "
634 "(recommending B<strftime>(3))."
635 msgstr ""
636
637 #. type: Plain text
638 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
639 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
640 msgid "POSIX.1-1996."
641 msgstr ""
642
643 #. type: Plain text
644 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
645 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
646 msgid ""
647 "POSIX.1-1996. Marked obsolescent in POSIX.1-2008. Removed in POSIX.1-2024 "
648 "(recommending B<strftime>(3))."
649 msgstr ""
650
651 #. type: SH
652 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
653 #: opensuse-leap-16-1 opensuse-tumbleweed
654 #, no-wrap
655 msgid "CAVEATS"
656 msgstr ""
657
658 #. type: Plain text
659 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
660 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
661 msgid ""
662 "The four functions B<asctime>(), B<ctime>(), B<gmtime>(), and "
663 "B<localtime>() return a pointer to static data and hence are not thread-"
664 "safe. The thread-safe versions, B<asctime_r>(), B<ctime_r>(), "
665 "B<gmtime_r>(), and B<localtime_r>(), are specified by SUSv2."
666 msgstr ""
667
668 #. type: Plain text
669 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
670 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
671 msgid ""
672 "POSIX.1 says: \"The B<asctime>(), B<ctime>(), B<gmtime>(), and "
673 "B<localtime>() functions shall return values in one of two static objects: "
674 "a broken-down time structure and an array of type I<char>. Execution of any "
675 "of the functions that return a pointer to one of these object types may "
676 "overwrite the information in any object of the same type pointed to by the "
677 "value returned from any previous call to any of them.\" This can occur in "
678 "the glibc implementation."
679 msgstr ""
680
681 #. type: SS
682 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
683 #: opensuse-leap-16-1 opensuse-tumbleweed
684 #, no-wrap
685 msgid "mktime()"
686 msgstr ""
687
688 #. type: Plain text
689 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
690 #: opensuse-leap-16-1 opensuse-tumbleweed
691 msgid ""
692 "I<(time_t) -1> can represent a valid time (one second before the Epoch). To "
693 "determine whether B<mktime>() failed, one must use the I<tm-E<gt>tm_wday> "
694 "field. See the example program in EXAMPLES."
695 msgstr ""
696
697 #. type: Plain text
698 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
699 #: opensuse-leap-16-1 opensuse-tumbleweed
700 msgid ""
701 "The handling of a non-negative I<tm_isdst> in B<mktime>() is poorly "
702 "specified, and passing a value that is incorrect for the time specified "
703 "yields unspecified results. Since B<mktime>() is one of the few functions "
704 "that knows when DST is in effect, providing a correct value may be "
705 "difficult. One workaround for this is to call B<mktime>() twice, once with "
706 "I<tm_isdst> set to zero, and once with I<tm_isdst> set to a positive value, "
707 "and discarding the results from the call that changes it. If neither call "
708 "changes I<tm_isdst> then the time specified probably happens during a fall-"
709 "back period where DST begins or ends, and both results are valid but "
710 "represent two different times. If both calls change it, that could indicate "
711 "a fall-forward transition, or some other reason why the time specified does "
712 "not exist."
713 msgstr ""
714
715 #. type: Plain text
716 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
717 #: opensuse-leap-16-1 opensuse-tumbleweed
718 msgid ""
719 "The specification of time zones and daylight saving time are up to regional "
720 "governments, change often, and may include discontinuities beyond "
721 "I<mktime>'s ability to document a result. For example, a change in the "
722 "timezone definition may cause a clock time to be repeated or skipped without "
723 "a corresponding DST change."
724 msgstr ""
725
726 #. type: SH
727 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
728 #: opensuse-leap-16-1 opensuse-tumbleweed
729 #, no-wrap
730 msgid "EXAMPLES"
731 msgstr ""
732
733 #. type: Plain text
734 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
735 #: opensuse-leap-16-1 opensuse-tumbleweed
736 msgid ""
737 "The program below defines a wrapper that allows detecting invalid and "
738 "ambiguous times, with B<EINVAL> and B<ENOTUNIQ>, respectively."
739 msgstr ""
740
741 #. type: Plain text
742 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
743 #: opensuse-leap-16-1 opensuse-tumbleweed
744 msgid "The following shell session shows sample runs of the program:"
745 msgstr ""
746
747 #. type: Plain text
748 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
749 #: opensuse-leap-16-1 opensuse-tumbleweed
750 #, no-wrap
751 msgid ""
752 "$\\ B<TZ=UTC ./a.out 1969 12 31 23 59 59 0>;\n"
753 "-1\n"
754 "$\n"
755 "$\\ B<export TZ=Europe/Madrid>;\n"
756 "$\n"
757 "$\\ B<./a.out 2147483647 2147483647 00 00 00 00 -1>;\n"
758 "a.out: mktime: Value too large for defined data type\n"
759 "$\n"
760 "$\\ B<./a.out 2024 08 23 00 17 53 -1>;\n"
761 "1724365073\n"
762 "$\\ B<./a.out 2024 08 23 00 17 53 0>;\n"
763 "a.out: my_mktime: Invalid argument\n"
764 "1724368673\n"
765 "$\\ B<./a.out 2024 08 23 00 17 53 1>;\n"
766 "1724365073\n"
767 "$\n"
768 "$\\ B<./a.out 2024 02 23 00 17 53 -1>;\n"
769 "1708643873\n"
770 "$\\ B<./a.out 2024 02 23 00 17 53 0>;\n"
771 "1708643873\n"
772 "$\\ B<./a.out 2024 02 23 00 17 53 1>;\n"
773 "a.out: my_mktime: Invalid argument\n"
774 "1708640273\n"
775 "$\n"
776 "$\\ B<./a.out 2023 03 26 02 17 53 -1>;\n"
777 "a.out: my_mktime: Invalid argument\n"
778 "1679793473\n"
779 "$\n"
780 "$\\ B<./a.out 2023 10 29 02 17 53 -1>;\n"
781 "a.out: my_mktime: Name not unique on network\n"
782 "1698542273\n"
783 "$\\ B<./a.out 2023 10 29 02 17 53 0>;\n"
784 "1698542273\n"
785 "$\\ B<./a.out 2023 10 29 02 17 53 1>;\n"
786 "1698538673\n"
787 "$\n"
788 "$\\ B<./a.out 2023 02 29 12 00 00 -1>;\n"
789 "a.out: my_mktime: Invalid argument\n"
790 "1677668400\n"
791 msgstr ""
792
793 #. type: SS
794 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
795 #: opensuse-leap-16-1 opensuse-tumbleweed
796 #, no-wrap
797 msgid "Program source: mktime.c"
798 msgstr ""
799
800 #. type: Plain text
801 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
802 #: opensuse-tumbleweed
803 #, no-wrap
804 msgid ""
805 "#include E<lt>err.hE<gt>\n"
806 "#include E<lt>errno.hE<gt>\n"
807 "#include E<lt>stdint.hE<gt>\n"
808 "#include E<lt>stdio.hE<gt>\n"
809 "#include E<lt>stdlib.hE<gt>\n"
810 "#include E<lt>string.hE<gt>\n"
811 "#include E<lt>time.hE<gt>\n"
812 "\\&\n"
813 "#define is_signed(T) ((T) -1 E<lt> 1)\n"
814 "\\&\n"
815 "static time_t my_mktime(struct tm *tp);\n"
816 "\\&\n"
817 "int\n"
818 "main(int argc, char *argv[])\n"
819 "{\n"
820 " char **p;\n"
821 " time_t t;\n"
822 " struct tm tm;\n"
823 "\\&\n"
824 " if (argc != 8) {\n"
825 " fprintf(stderr, \"Usage: %s yyyy mm dd HH MM SS isdst\\[rs]n\", argv[0]);\n"
826 " exit(EXIT_FAILURE);\n"
827 " }\n"
828 "\\&\n"
829 " p = &argv[1];\n"
830 " tm.tm_year = atoi(*p++) - 1900;\n"
831 " tm.tm_mon = atoi(*p++) - 1;\n"
832 " tm.tm_mday = atoi(*p++);\n"
833 " tm.tm_hour = atoi(*p++);\n"
834 " tm.tm_min = atoi(*p++);\n"
835 " tm.tm_sec = atoi(*p++);\n"
836 " tm.tm_isdst = atoi(*p++);\n"
837 "\\&\n"
838 " errno = 0;\n"
839 " tm.tm_wday = -1;\n"
840 " t = my_mktime(&tm);\n"
841 " if (tm.tm_wday == -1)\n"
842 " err(EXIT_FAILURE, \"mktime\");\n"
843 " if (errno == EINVAL || errno == ENOTUNIQ)\n"
844 " warn(\"my_mktime\");\n"
845 "\\&\n"
846 " if (is_signed(time_t))\n"
847 " printf(\"%jd\\[rs]n\", (intmax_t) t);\n"
848 " else\n"
849 " printf(\"%ju\\[rs]n\", (uintmax_t) t);\n"
850 "\\&\n"
851 " exit(EXIT_SUCCESS);\n"
852 "}\n"
853 "\\&\n"
854 "static time_t\n"
855 "my_mktime(struct tm *tp)\n"
856 "{\n"
857 " int e, isdst;\n"
858 " time_t t;\n"
859 " struct tm tm;\n"
860 " unsigned char wday[sizeof(tp-E<gt>tm_wday)];\n"
861 "\\&\n"
862 " e = errno;\n"
863 "\\&\n"
864 " tm = *tp;\n"
865 " isdst = tp-E<gt>tm_isdst;\n"
866 "\\&\n"
867 " memcpy(wday, &tp-E<gt>tm_wday, sizeof(wday));\n"
868 " tp-E<gt>tm_wday = -1;\n"
869 " t = mktime(tp);\n"
870 " if (tp-E<gt>tm_wday == -1) {\n"
871 " memcpy(&tp-E<gt>tm_wday, wday, sizeof(wday));\n"
872 " return -1;\n"
873 " }\n"
874 "\\&\n"
875 " if (isdst == -1)\n"
876 " tm.tm_isdst = tp-E<gt>tm_isdst;\n"
877 "\\&\n"
878 " if ( tm.tm_sec != tp-E<gt>tm_sec\n"
879 " || tm.tm_min != tp-E<gt>tm_min\n"
880 " || tm.tm_hour != tp-E<gt>tm_hour\n"
881 " || tm.tm_mday != tp-E<gt>tm_mday\n"
882 " || tm.tm_mon != tp-E<gt>tm_mon\n"
883 " || tm.tm_year != tp-E<gt>tm_year\n"
884 " || tm.tm_isdst != tp-E<gt>tm_isdst)\n"
885 " {\n"
886 " errno = EINVAL;\n"
887 " return t;\n"
888 " }\n"
889 "\\&\n"
890 " if (isdst != -1)\n"
891 " goto out;\n"
892 "\\&\n"
893 " tm = *tp;\n"
894 " tm.tm_isdst = !tm.tm_isdst;\n"
895 "\\&\n"
896 " tm.tm_wday = -1;\n"
897 " mktime(&tm);\n"
898 " if (tm.tm_wday == -1)\n"
899 " goto out;\n"
900 "\\&\n"
901 " if (tm.tm_isdst != tp-E<gt>tm_isdst) {\n"
902 " errno = ENOTUNIQ;\n"
903 " return t;\n"
904 " }\n"
905 "out:\n"
906 " errno = e;\n"
907 " return t;\n"
908 "}\n"
909 msgstr ""
910
911 #. #-#-#-#-# archlinux: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
912 #. SRC END
913 #. type: SH
914 #. #-#-#-#-# debian-trixie: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
915 #. type: SH
916 #. #-#-#-#-# debian-unstable: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
917 #. SRC END
918 #. type: SH
919 #. #-#-#-#-# fedora-44: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
920 #. SRC END
921 #. type: SH
922 #. #-#-#-#-# fedora-rawhide: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
923 #. SRC END
924 #. type: SH
925 #. #-#-#-#-# mageia-cauldron: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
926 #. SRC END
927 #. type: SH
928 #. #-#-#-#-# opensuse-leap-16-1: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
929 #. SRC END
930 #. type: SH
931 #. #-#-#-#-# opensuse-tumbleweed: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
932 #. SRC END
933 #. type: SH
934 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
935 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
936 #, no-wrap
937 msgid "SEE ALSO"
938 msgstr ""
939
940 #. type: Plain text
941 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
942 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
943 msgid ""
944 "B<date>(1), B<gettimeofday>(2), B<time>(2), B<utime>(2), B<clock>(3), "
945 "B<difftime>(3), B<strftime>(3), B<strptime>(3), B<timegm>(3), B<tzset>(3), "
946 "B<time>(7)"
947 msgstr ""
948
949 #. type: TH
950 #: debian-trixie
951 #, no-wrap
952 msgid "2024-06-15"
953 msgstr ""
954
955 #. type: TH
956 #: debian-trixie
957 #, no-wrap
958 msgid "Linux man-pages 6.9.1"
959 msgstr ""
960
961 #. type: Plain text
962 #: debian-trixie
963 msgid "Standard C library (I<libc>, I<-lc>)"
964 msgstr ""
965
966 #. type: Plain text
967 #: debian-trixie fedora-44 fedora-rawhide
968 msgid ""
969 "The call B<ctime(>I<t>B<)> is equivalent to B<asctime(localtime(>I<t>B<))>. "
970 "It converts the calendar time I<t> into a null-terminated string of the form"
971 msgstr ""
972
973 #. type: Plain text
974 #: debian-trixie
975 msgid ""
976 "The B<mktime>() function converts a broken-down time structure, expressed "
977 "as local time, to calendar time representation. The function ignores the "
978 "values supplied by the caller in the I<tm_wday> and I<tm_yday> fields. The "
979 "value specified in the I<tm_isdst> field informs B<mktime>() whether or not "
980 "daylight saving time (DST) is in effect for the time supplied in the I<tm> "
981 "structure: a positive value means DST is in effect; zero means that DST is "
982 "not in effect; and a negative value means that B<mktime>() should (use "
983 "timezone information and system databases to) attempt to determine whether "
984 "DST is in effect at the specified time."
985 msgstr ""
986
987 #. type: Plain text
988 #: debian-trixie
989 msgid ""
990 "On error, B<mktime>() returns the value I<(time_t)\\ -1>. The remaining "
991 "functions return NULL on error. On error, I<errno> is set to indicate the "
992 "error."
993 msgstr ""
994
995 #. type: SH
996 #: debian-trixie
997 #, no-wrap
998 msgid "NOTES"
999 msgstr ""
1000
1001 #. type: TH
1002 #: fedora-44 fedora-rawhide
1003 #, no-wrap
1004 msgid "2025-02-18"
1005 msgstr ""
1006
1007 #. type: TH
1008 #: fedora-44 fedora-rawhide
1009 #, no-wrap
1010 msgid "Linux man-pages 6.13"
1011 msgstr ""
1012
1013 #. type: Plain text
1014 #: fedora-44 fedora-rawhide
1015 #, no-wrap
1016 msgid ""
1017 "#include E<lt>err.hE<gt>\n"
1018 "#include E<lt>errno.hE<gt>\n"
1019 "#include E<lt>stdint.hE<gt>\n"
1020 "#include E<lt>stdio.hE<gt>\n"
1021 "#include E<lt>stdlib.hE<gt>\n"
1022 "#include E<lt>string.hE<gt>\n"
1023 "#include E<lt>time.hE<gt>\n"
1024 "\\&\n"
1025 "#define is_signed(T) ((T) -1 E<lt> 1)\n"
1026 "\\&\n"
1027 "time_t my_mktime(struct tm *tp);\n"
1028 "\\&\n"
1029 "int\n"
1030 "main(int argc, char *argv[])\n"
1031 "{\n"
1032 " char **p;\n"
1033 " time_t t;\n"
1034 " struct tm tm;\n"
1035 "\\&\n"
1036 " if (argc != 8) {\n"
1037 " fprintf(stderr, \"Usage: %s yyyy mm dd HH MM SS isdst\\[rs]n\", argv[0]);\n"
1038 " exit(EXIT_FAILURE);\n"
1039 " }\n"
1040 "\\&\n"
1041 " p = &argv[1];\n"
1042 " tm.tm_year = atoi(*p++) - 1900;\n"
1043 " tm.tm_mon = atoi(*p++) - 1;\n"
1044 " tm.tm_mday = atoi(*p++);\n"
1045 " tm.tm_hour = atoi(*p++);\n"
1046 " tm.tm_min = atoi(*p++);\n"
1047 " tm.tm_sec = atoi(*p++);\n"
1048 " tm.tm_isdst = atoi(*p++);\n"
1049 "\\&\n"
1050 " errno = 0;\n"
1051 " tm.tm_wday = -1;\n"
1052 " t = my_mktime(&tm);\n"
1053 " if (tm.tm_wday == -1)\n"
1054 " err(EXIT_FAILURE, \"mktime\");\n"
1055 " if (errno == EINVAL || errno == ENOTUNIQ)\n"
1056 " warn(\"my_mktime\");\n"
1057 "\\&\n"
1058 " if (is_signed(time_t))\n"
1059 " printf(\"%jd\\[rs]n\", (intmax_t) t);\n"
1060 " else\n"
1061 " printf(\"%ju\\[rs]n\", (uintmax_t) t);\n"
1062 "\\&\n"
1063 " exit(EXIT_SUCCESS);\n"
1064 "}\n"
1065 "\\&\n"
1066 "time_t\n"
1067 "my_mktime(struct tm *tp)\n"
1068 "{\n"
1069 " int e, isdst;\n"
1070 " time_t t;\n"
1071 " struct tm tm;\n"
1072 " unsigned char wday[sizeof(tp-E<gt>tm_wday)];\n"
1073 "\\&\n"
1074 " e = errno;\n"
1075 "\\&\n"
1076 " tm = *tp;\n"
1077 " isdst = tp-E<gt>tm_isdst;\n"
1078 "\\&\n"
1079 " memcpy(wday, &tp-E<gt>tm_wday, sizeof(wday));\n"
1080 " tp-E<gt>tm_wday = -1;\n"
1081 " t = mktime(tp);\n"
1082 " if (tp-E<gt>tm_wday == -1) {\n"
1083 " memcpy(&tp-E<gt>tm_wday, wday, sizeof(wday));\n"
1084 " return -1;\n"
1085 " }\n"
1086 "\\&\n"
1087 " if (isdst == -1)\n"
1088 " tm.tm_isdst = tp-E<gt>tm_isdst;\n"
1089 "\\&\n"
1090 " if ( tm.tm_sec != tp-E<gt>tm_sec\n"
1091 " || tm.tm_min != tp-E<gt>tm_min\n"
1092 " || tm.tm_hour != tp-E<gt>tm_hour\n"
1093 " || tm.tm_mday != tp-E<gt>tm_mday\n"
1094 " || tm.tm_mon != tp-E<gt>tm_mon\n"
1095 " || tm.tm_year != tp-E<gt>tm_year\n"
1096 " || tm.tm_isdst != tp-E<gt>tm_isdst)\n"
1097 " {\n"
1098 " errno = EINVAL;\n"
1099 " return t;\n"
1100 " }\n"
1101 "\\&\n"
1102 " if (isdst != -1)\n"
1103 " goto out;\n"
1104 "\\&\n"
1105 " tm = *tp;\n"
1106 " tm.tm_isdst = !tm.tm_isdst;\n"
1107 "\\&\n"
1108 " tm.tm_wday = -1;\n"
1109 " mktime(&tm);\n"
1110 " if (tm.tm_wday == -1)\n"
1111 " goto out;\n"
1112 "\\&\n"
1113 " if (tm.tm_isdst != tp-E<gt>tm_isdst) {\n"
1114 " errno = ENOTUNIQ;\n"
1115 " return t;\n"
1116 " }\n"
1117 "out:\n"
1118 " errno = e;\n"
1119 " return t;\n"
1120 "}\n"
1121 msgstr ""
1122
1123 #. type: TH
1124 #: mageia-cauldron
1125 #, no-wrap
1126 msgid "Linux man-pages 6.17"
1127 msgstr ""
1128
1129 #. type: TH
1130 #: opensuse-leap-16-1 opensuse-tumbleweed
1131 #, no-wrap
1132 msgid "Linux man-pages (unreleased)"
1133 msgstr ""