Debian Codegraph @

po/de/man3/ctime.3.po

raw
1 # German translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Patrick Rother <[email protected]>
5 # Chris Leick <[email protected]>, 2010-2014.
6 # Mario Blättermann <[email protected]>, 2014, 2021, 2022, 2023.
7 # Helge Kreutzmann <[email protected]>, 2016, 2024, 2025.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: manpages-l10n 4.30.2\n"
11 "POT-Creation-Date: 2026-06-05 06:21+0200\n"
12 "PO-Revision-Date: 2026-06-05 11:10+0200\n"
13 "Last-Translator: Mario Blättermann <[email protected]>\n"
14 "Language-Team: German <[email protected]>\n"
15 "Language: de\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, no-wrap
25 msgid "ctime"
26 msgstr "ctime"
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-08"
33 msgstr "8. Februar 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, no-wrap
38 msgid "Linux man-pages 6.18"
39 msgstr "Linux man-pages 6.18"
40
41 #. type: SH
42 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
43 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
44 #, no-wrap
45 msgid "NAME"
46 msgstr "BEZEICHNUNG"
47
48 #. type: Plain text
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 msgid ""
52 "asctime, ctime, gmtime, localtime, mktime, asctime_r, ctime_r, gmtime_r, "
53 "localtime_r - transform date and time to broken-down time or ASCII"
54 msgstr ""
55 "asctime, ctime, gmtime, localtime, mktime - Datum und Zeit in "
56 "aufgeschlüsselte Zeit oder ASCII umwandeln"
57
58 #. type: SH
59 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
60 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
61 #, no-wrap
62 msgid "LIBRARY"
63 msgstr "BIBLIOTHEK"
64
65 #. type: Plain text
66 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
67 #: opensuse-leap-16-1 opensuse-tumbleweed
68 msgid "Standard C library (I<libc>,\\ I<-lc>)"
69 msgstr "Standard-C-Bibliothek (I<libc>,\\ I<-lc>)"
70
71 #. type: SH
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid "SYNOPSIS"
76 msgstr "ÜBERSICHT"
77
78 #. type: Plain text
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 #, no-wrap
82 msgid "B<#include E<lt>time.hE<gt>>\n"
83 msgstr "B<#include E<lt>time.hE<gt>>\n"
84
85 #. type: Plain text
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 #, no-wrap
89 msgid ""
90 "B<char *asctime(const struct tm *>I<tm>B<);>\n"
91 "B<char *asctime_r(const struct tm *restrict >I<tm>B<,>\n"
92 "B< char >I<buf>B<[restrict 26]);>\n"
93 msgstr ""
94 "B<char *asctime(const struct tm *>I<tm>B<);>\n"
95 "B<char *asctime_r(const struct tm *restrict >I<tm>B<,>\n"
96 "B< char >I<Puffer>B<[restrict 26]);>\n"
97
98 #. type: Plain text
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 #, no-wrap
102 msgid ""
103 "B<char *ctime(const time_t *>I<timep>B<);>\n"
104 "B<char *ctime_r(const time_t *restrict >I<timep>B<,>\n"
105 "B< char >I<buf>B<[restrict 26]);>\n"
106 msgstr ""
107 "B<char *ctime(const time_t *>I<Zeitz>B<);>\n"
108 "B<char *ctime_r(const time_t *restrict >I<Zeitz>B<,>\n"
109 "B< char >I<Puffer>B<[restrict 26]);>\n"
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 *gmtime(const time_t *>I<timep>B<);>\n"
117 "B<struct tm *gmtime_r(const time_t *restrict >I<timep>B<,>\n"
118 "B< struct tm *restrict >I<result>B<);>\n"
119 msgstr ""
120 "B<struct tm *gmtime(const time_t *>I<zeitz>B<);>\n"
121 "B<struct tm *gmtime_r(const time_t *restrict >I<zeitz>B<,>\n"
122 "B< struct tm *restrict >I<Ergebnis>B<);>\n"
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid ""
129 "B<struct tm *localtime(const time_t *>I<timep>B<);>\n"
130 "B<struct tm *localtime_r(const time_t *restrict >I<timep>B<,>\n"
131 "B< struct tm *restrict >I<result>B<);>\n"
132 msgstr ""
133 "B<struct tm *localtime(const time_t *>I<zeitz>B<);>\n"
134 "B<struct tm *localtime_r(const time_t *restrict >I<zeitz>B<,>\n"
135 "B< struct tm *restrict >I<Ergebnis>B<);>\n"
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 #, no-wrap
141 msgid "B<time_t mktime(struct tm *>I<tm>B<);>\n"
142 msgstr "B<time_t mktime(struct tm *>I<tm>B<);>\n"
143
144 #. type: Plain text
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 msgid ""
148 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
149 msgstr ""
150 "Mit Glibc erforderliche Feature-Test-Makros (siehe "
151 "B<feature_test_macros>(7)):"
152
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 msgid "B<asctime_r>(), B<ctime_r>(), B<gmtime_r>(), B<localtime_r>():"
157 msgstr "B<asctime_r>(), B<ctime_r>(), B<gmtime_r>(), B<localtime_r>():"
158
159 #. type: Plain text
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 #, no-wrap
163 msgid ""
164 " _POSIX_C_SOURCE\n"
165 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
166 msgstr ""
167 "_POSIX_C_SOURCE\n"
168 " || /* Glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
169
170 #. type: SH
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 #, no-wrap
174 msgid "DESCRIPTION"
175 msgstr "BESCHREIBUNG"
176
177 #. type: Plain text
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 msgid ""
181 "The B<ctime>(), B<gmtime>(), and B<localtime>() functions all take an "
182 "argument of data type I<time_t>, which represents calendar time. When "
183 "interpreted as an absolute time value, it represents the number of seconds "
184 "elapsed since the Epoch, 1970-01-01 00:00:00 +0000 (UTC)."
185 msgstr ""
186 "Die Funktionen B<ctime>(), B<gmtime>() und B<localtime>() benötigen ein "
187 "Argument des Datentyps I<time_t>, welches die Kalenderzeit darstellt. Wenn "
188 "sie als absoluter Zeitwert interpretiert wird, stellt sie die Unixzeit dar, "
189 "die Sekunden, die seit dem 1. Januar 1970, 00:00.00 Uhr koordinierter "
190 "Weltzeit (UTC) verstrichen sind."
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid ""
196 "The B<asctime>() and B<mktime>() functions both take an argument "
197 "representing broken-down time, which is a representation separated into "
198 "year, month, day, and so on."
199 msgstr ""
200 "Die Funktionen B<asctime>() und B<mktime>() benötigen jeweils ein Argument "
201 "das eine aufgeschlüsselte Zeitangabe darstellt, die in Jahr, Monat, Tag usw. "
202 "aufgeteilt ist."
203
204 #. type: Plain text
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 msgid ""
208 "Broken-down time is stored in the structure I<tm>, described in B<tm>(3type)."
209 msgstr ""
210 "Aufgeschlüsselte Zeit wird in der Struktur I<tm> gespeichert, die in "
211 "B<tm>(3type) beschrieben ist."
212
213 # FIXME I<asctime(localtime(t))> → B<asctime(localtime(>I<t>B<))>
214 #. type: Plain text
215 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
216 #: opensuse-tumbleweed
217 msgid ""
218 "The call B<ctime(>I<t>B<)> is equivalent to I<asctime(localtime(t))>. It "
219 "converts the calendar time I<t> into a null-terminated string of the form"
220 msgstr ""
221 "Der Aufruf B<ctime(>I<t>B<)> entspricht B<asctime(localtime(>I<t>B<))>. Er "
222 "konvertiert die Kalenderzeit I<t> in eine durch Null beendete Zeichenkette "
223 "der Form"
224
225 #. type: Plain text
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 #, no-wrap
229 msgid "\"Wed Jun 30 21:49:08 1993\\[rs]n\"\n"
230 msgstr "\"Wed Jun 30 21:49:08 1993\\[rs]n\"\n"
231
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 msgid ""
236 "The abbreviations for the days of the week are \"Sun\", \"Mon\", \"Tue\", "
237 "\"Wed\", \"Thu\", \"Fri\", and \"Sat\". The abbreviations for the months "
238 "are \"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", "
239 "\"Sep\", \"Oct\", \"Nov\", and \"Dec\". The return value points to a "
240 "statically allocated string which might be overwritten by subsequent calls "
241 "to any of the date and time functions. The function also sets the external "
242 "variables I<tzname>, I<timezone>, and I<daylight> as if it called "
243 "B<tzset>(3). The reentrant version B<ctime_r>() does the same, but stores "
244 "the string in a user-supplied buffer which should have room for at least 26 "
245 "bytes. It need not set I<tzname>, I<timezone>, and I<daylight>."
246 msgstr ""
247 "Die Abkürzungen für die Wochentage sind »Sun«, »Mon«, »Tue«, »Wed«, »Thu«, "
248 "»Fri« und »Sat«. Die Abkürzungen für die Monate sind »Jan«, »Feb«, »Mar«, "
249 "»Apr«, »May«, »Jun«, »Jul«, »Aug«, »Sep«, »Oct«, »Nov« und »Dec«. Der "
250 "Rückgabewert zeigt auf eine statisch reservierte Zeichenkette, die durch "
251 "nachfolgende Aufrufe von Datums- und Zeitfunktionen überschrieben werden "
252 "darf. Die Funktion setzt auch die externen Variablen I<tzname>, I<timezone> "
253 "und I<daylight>, als ob B<tzset>(3) aufgerufen worden wäre. Die "
254 "ablaufinvariante Version B<ctime_r>() tut dasselbe, speichert aber die "
255 "Zeichenkette in einem vom Benutzer gelieferten Zeichenkettenpuffer, der "
256 "Platz für mindestens 26 Byte haben sollte. I<tzname>, I<timezone> und "
257 "I<daylight> müssen nicht gesetzt sein."
258
259 #. type: Plain text
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 msgid ""
263 "The B<gmtime>() function converts the calendar time I<timep> to broken-down "
264 "time representation, expressed in Coordinated Universal Time (UTC). It may "
265 "return NULL when the year does not fit into an integer. The return value "
266 "points to a statically allocated struct which might be overwritten by "
267 "subsequent calls to any of the date and time functions. The B<gmtime_r>() "
268 "function does the same, but stores the data in a user-supplied struct."
269 msgstr ""
270 "Die Funktion B<gmtime>() wandelt die Kalenderzeit I<zeitz> in eine "
271 "aufgeschlüsselte Entsprechung der Zeit um, die in koordinierter Weltzeit "
272 "(UTC) ausgedrückt wird. Sie kann NULL zurückgeben, wenn das Jahr nicht in "
273 "eine Ganzzahl passt. Der Rückgabewert zeigt auf eine statisch reservierte "
274 "Struktur, die von nachfolgenden Aufrufen irgendwelcher Datums- und "
275 "Zeitfunktionen überschrieben werden kann. Die Funktion B<gmtime_r>() tut das "
276 "gleiche, speichert aber die Daten in einer vom Benutzer gelieferten Struktur."
277
278 #. type: Plain text
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 msgid ""
282 "The B<localtime>() function converts the calendar time I<timep> to broken-"
283 "down time representation, expressed relative to the user's specified "
284 "timezone. The function also sets the external variables I<tzname>, "
285 "I<timezone>, and I<daylight> as if it called B<tzset>(3). The return value "
286 "points to a statically allocated struct which might be overwritten by "
287 "subsequent calls to any of the date and time functions. The "
288 "B<localtime_r>() function does the same, but stores the data in a user-"
289 "supplied struct. It need not set I<tzname>, I<timezone>, and I<daylight>."
290 msgstr ""
291 "Die Funktion B<localtime>() wandelt die Kalenderzeit I<zeitz> in eine "
292 "aufgeschlüsselte Entsprechung der Zeit um, ausgedrückt relativ zu der vom "
293 "Benutzer angegebenen Zeitzone. Die Funktion setzt auch die externen "
294 "Variablen I<tzname>, I<timezone> und I<daylight>, als ob sie B<tzset>(3) "
295 "aufriefe. Der Rückgabewert zeigt auf eine statisch reservierte Struktur, die "
296 "von nachfolgenden Aufrufen irgendwelcher Datums- und Zeitfunktionen "
297 "überschrieben werden kann. Die Funktion B<localtime_r>() tut das gleiche, "
298 "speichert aber die Daten in einer vom Benutzer gelieferten Struktur. "
299 "I<tzname>, I<timezone> und I<daylight> müssen nicht gesetzt sein."
300
301 #. type: Plain text
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 msgid ""
305 "The B<asctime>() function converts the broken-down time value I<tm> into a "
306 "null-terminated string with the same format as B<ctime>(). The return value "
307 "points to a statically allocated string which might be overwritten by "
308 "subsequent calls to any of the date and time functions. The B<asctime_r>() "
309 "function does the same, but stores the string in a user-supplied buffer "
310 "which should have room for at least 26 bytes."
311 msgstr ""
312 "Die Funktion B<asctime>() wandelt den aufgeschlüsselten Zeitwert I<tm> in "
313 "eine durch Null beendete Zeichenkette mit dem gleichen Format wie "
314 "B<ctime>(). Der Rückgabewert zeigt auf eine statisch reservierte "
315 "Zeichenkette, die von nachfolgenden Aufrufen irgendwelcher Datums- und "
316 "Zeitfunktionen überschrieben werden kann. Die Funktion B<asctime_r>() tut "
317 "das gleiche, speichert aber die Zeichenkette in einem vom Benutzer "
318 "gelieferten Zeichenkettenpuffer, der Platz für mindestens 26 Byte haben "
319 "sollte."
320
321 #. type: Plain text
322 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
323 #: opensuse-leap-16-1 opensuse-tumbleweed
324 msgid ""
325 "The B<mktime>() function converts a broken-down time structure, expressed "
326 "as local time, to calendar time representation. The function ignores the "
327 "values supplied by the caller in the I<tm_wday> and I<tm_yday> fields. The "
328 "value specified in the I<tm_isdst> field informs B<mktime>() whether or not "
329 "daylight saving time (DST) is in effect for the time supplied in the I<tm> "
330 "structure: a positive value means DST is in effect; zero means that DST is "
331 "not in effect; and a negative value means that B<mktime>() should (use "
332 "timezone information and system databases to) attempt to determine whether "
333 "DST is in effect at the specified time. See B<timegm>(3) for a UTC "
334 "equivalent of this function."
335 msgstr ""
336 "Die Funktion B<mktime>() wandelt die aufgeschlüsselten Zeitstruktur, die als "
337 "lokale Zeit ausgedrückt wird, in eine Entsprechung der Kalenderzeit. Die "
338 "Funktion ignoriert die Werte, die der Aufrufende in den Feldern I<tm_wday> "
339 "und I<tm_yday> mitgegeben hat, egal ob in der Zeit der mitgegebenen Struktur "
340 "I<tm> Sommerzeit ist oder nicht: Ein positiver Wert bedeutet, dass "
341 "Sommerzeit ist, Null bedeutet, dass keine Sommerzeit ist und ein negativer "
342 "Wert bedeutet, dass B<mktime>() (mit Zeitzoneninformationen und "
343 "Systemdatenbanken) versuchen sollte zu bestimmen, ob zur angegebenen Zeit "
344 "Sommerzeit ist oder nicht. Siehe B<timegm>(3) für ein UTC-Äquivalent für "
345 "diese Funktion."
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid ""
351 "The B<mktime>() function modifies the fields of the I<tm> structure as "
352 "follows: I<tm_wday> and I<tm_yday> are set to values determined from the "
353 "contents of the other fields; if structure members are outside their valid "
354 "interval, they will be normalized (so that, for example, 40 October is "
355 "changed into 9 November); I<tm_isdst> is set (regardless of its initial "
356 "value) to a positive value or to 0, respectively, to indicate whether DST "
357 "is or is not in effect at the specified time. The function also sets the "
358 "external variables I<tzname>, I<timezone>, and I<daylight> as if it called "
359 "B<tzset>(3)."
360 msgstr ""
361 "Die Funktion B<mktime>() ändert die Felder der Struktur I<tm> wie folgt: "
362 "I<tm_wday> und I<tm_yday> werden auf die Werte gesetzt, die vom Inhalt "
363 "anderer Felder bestimmt werden; falls Elemente der Stuktur außerhalb ihres "
364 "erlaubten Intervalls liegen, werden sie normalisiert (so dass zum Beispiel "
365 "der 40. Oktober auf 9. November geändert wird); I<tm_isdst> wird (unabhängig "
366 "vom anfänglichen Wert) auf einen positiven Wert beziehungsweise 0 gesetzt, "
367 "um anzuzeigen, ob zur angegebenen Zeit Sommerzeit ist oder nicht. Die "
368 "Funktion setzt auch die externen Variablen I<tzname>, I<timezone> und "
369 "I<daylight>, als ob sie B<tzset>(3) aufriefe."
370
371 #. type: Plain text
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 msgid ""
375 "If the specified broken-down time cannot be represented as calendar time "
376 "(seconds since the Epoch), B<mktime>() returns I<(time_t)\\ -1> and does "
377 "not alter the members of the broken-down time structure."
378 msgstr ""
379 "Falls die angegebene aufgeschlüsselte Zeit nicht als Kalenderzeit (Unixzeit "
380 "in Sekunden) dargestellt werden kann, gibt B<mktime>() I<(time_t)\\ -1> "
381 "zurück und verändert die Elemente der aufgeschlüsselten Zeitstruktur nicht."
382
383 #. type: SH
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 #, no-wrap
387 msgid "RETURN VALUE"
388 msgstr "RÜCKGABEWERT"
389
390 #. type: Plain text
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 msgid ""
394 "On success, B<gmtime>() and B<localtime>() return a pointer to a "
395 "I<struct\\ tm>."
396 msgstr ""
397 "Im Erfolgsfall liefern B<gmtime>() und B<localtime>() einen Zeiger auf ein "
398 "I<struct\\ tm> zurück."
399
400 #. type: Plain text
401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
403 msgid ""
404 "On success, B<gmtime_r>() and B<localtime_r>() return the address of the "
405 "structure pointed to by I<result>."
406 msgstr ""
407 "Im Erfolgsfall liefern B<gmtime_r>() und B<localtime_r>() die Adresse der "
408 "Struktur zurück, auf die I<result> zeigt."
409
410 #. type: Plain text
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 msgid "On success, B<asctime>() and B<ctime>() return a pointer to a string."
414 msgstr ""
415 "Im Erfolgsfall liefern B<asctime>() und B<ctime>() einen Zeiger auf eine "
416 "Zeichenkette zurück."
417
418 #. type: Plain text
419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
421 msgid ""
422 "On success, B<asctime_r>() and B<ctime_r>() return a pointer to the string "
423 "pointed to by I<buf>."
424 msgstr ""
425 "Im Erfolgsfall liefern B<asctime_r>() und B<ctime_r>() einen Zeiger zurück, "
426 "auf den I<buf> zeigt."
427
428 #. type: Plain text
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 msgid ""
432 "On success, B<mktime>() returns the calendar time (seconds since the "
433 "Epoch), expressed as a value of type I<time_t>."
434 msgstr ""
435 "Im Erfolgsfall liefert B<mktime>() die Kalenderzeit (Sekunden seit der "
436 "Epoch) zurück, ausgedrückt als Wert des Typs I<time_t>."
437
438 #. type: Plain text
439 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
440 #: opensuse-leap-16-1 opensuse-tumbleweed
441 msgid ""
442 "On error, B<mktime>() returns the value I<(time_t)\\ -1>, and leaves the "
443 "I<tm-E<gt>tm_wday> member unmodified. The remaining functions return NULL "
444 "on error. On error, I<errno> is set to indicate the error."
445 msgstr ""
446 "Im Fehlerfall liefert B<mktime>() den Wert I<(time_t)\\ -1> zurück und "
447 "belässt das Mitglied I<tm-E<gt>tm_wday> unverändert. Die verbliebenen "
448 "Funktionen liefern NULL im Fehlerfall zurück. Im Fehlerfall wird I<errno> "
449 "gesetzt, um den Fehler anzuzeigen."
450
451 #. type: SH
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 #, no-wrap
455 msgid "ERRORS"
456 msgstr "FEHLER"
457
458 #. type: TP
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 #, no-wrap
462 msgid "B<EOVERFLOW>"
463 msgstr "B<EOVERFLOW>"
464
465 #. type: Plain text
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 msgid "The result cannot be represented."
469 msgstr "Das Ergebnis kann nicht dargestellt werden."
470
471 #. type: SH
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 #, no-wrap
475 msgid "ATTRIBUTES"
476 msgstr "ATTRIBUTE"
477
478 #. type: Plain text
479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
481 msgid ""
482 "For an explanation of the terms used in this section, see B<attributes>(7)."
483 msgstr ""
484 "Siehe B<attributes>(7) für eine Erläuterung der in diesem Abschnitt "
485 "verwandten Ausdrücke."
486
487 #. type: tbl table
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 #, no-wrap
491 msgid "Interface"
492 msgstr "Schnittstelle"
493
494 #. type: tbl table
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 #, no-wrap
498 msgid "Attribute"
499 msgstr "Attribut"
500
501 #. type: tbl table
502 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
503 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
504 #, no-wrap
505 msgid "Value"
506 msgstr "Wert"
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 ".na\n"
513 msgstr ".na\n"
514
515 #. type: tbl table
516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
518 #, no-wrap
519 msgid ".nh\n"
520 msgstr ".nh\n"
521
522 #. type: TP
523 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
524 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
525 #, no-wrap
526 msgid "B<asctime>()"
527 msgstr "B<asctime>()"
528
529 #. #-#-#-#-# archlinux: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
530 #. type: SS
531 #. #-#-#-#-# debian-trixie: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
532 #. type: tbl table
533 #. #-#-#-#-# debian-unstable: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
534 #. type: SS
535 #. #-#-#-#-# fedora-44: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
536 #. type: SS
537 #. #-#-#-#-# fedora-rawhide: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
538 #. type: SS
539 #. #-#-#-#-# mageia-cauldron: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
540 #. type: SS
541 #. #-#-#-#-# opensuse-leap-16-1: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
542 #. type: SS
543 #. #-#-#-#-# opensuse-tumbleweed: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
544 #. type: SS
545 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
546 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
547 #, no-wrap
548 msgid "Thread safety"
549 msgstr "Multithread-Fähigkeit"
550
551 #. type: tbl table
552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
554 #, no-wrap
555 msgid "MT-Unsafe race:asctime locale"
556 msgstr "MT-Unsicher race:asctime locale"
557
558 #. type: TP
559 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
560 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
561 #, no-wrap
562 msgid "B<asctime_r>()"
563 msgstr "B<asctime_r>()"
564
565 #. type: tbl table
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 #, no-wrap
569 msgid "MT-Safe locale"
570 msgstr "MT-Sicher locale"
571
572 #. type: TQ
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 #, no-wrap
576 msgid "B<ctime>()"
577 msgstr "B<ctime>()"
578
579 #. type: tbl table
580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
582 #, no-wrap
583 msgid ""
584 "MT-Unsafe race:tmbuf\n"
585 "race:asctime env locale"
586 msgstr ""
587 "MT-Unsicher race:tmbuf\n"
588 "race:asctime env locale"
589
590 #. type: tbl table
591 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
592 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
593 #, no-wrap
594 msgid ""
595 "B<ctime_r>(),\n"
596 "B<gmtime_r>(),\n"
597 "B<localtime_r>(),\n"
598 "B<mktime>()"
599 msgstr ""
600 "B<ctime_r>(),\n"
601 "B<gmtime_r>(),\n"
602 "B<localtime_r>(),\n"
603 "B<mktime>()"
604
605 #. type: tbl table
606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
608 #, no-wrap
609 msgid "MT-Safe env locale"
610 msgstr "MT-Sicher env locale"
611
612 #. type: tbl table
613 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
614 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
615 #, no-wrap
616 msgid ""
617 "B<gmtime>(),\n"
618 "B<localtime>()"
619 msgstr ""
620 "B<gmtime>(),\n"
621 "B<localtime>()"
622
623 #. type: tbl table
624 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
625 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
626 #, no-wrap
627 msgid "MT-Unsafe race:tmbuf env locale"
628 msgstr "MT-Unsicher race:tmbuf env locale"
629
630 #. type: SH
631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
633 #, no-wrap
634 msgid "VERSIONS"
635 msgstr "VERSIONEN"
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 ""
641 "POSIX doesn't specify the parameters of B<ctime_r>() to be I<restrict>; "
642 "that is specific to glibc."
643 msgstr ""
644 "POSIX spezifiziert die Parameter von B<ctime_r>() nicht als I<restrict>; "
645 "dies ist Glibc-spezifisch."
646
647 #. type: Plain text
648 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
649 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
650 msgid ""
651 "In many implementations, including glibc, a 0 in I<tm_mday> is interpreted "
652 "as meaning the last day of the preceding month."
653 msgstr ""
654 "In vielen Implementierungen, einschließlich Glibc, wird a 0 in I<tm_mday> "
655 "als letzter Tag des vorhergehenden Monats interpretiert."
656
657 #. See http://thread.gmane.org/gmane.comp.time.tz/2034/
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 "According to POSIX.1, B<localtime>() is required to behave as though "
663 "B<tzset>(3) was called, while B<localtime_r>() does not have this "
664 "requirement. For portable code, B<tzset>(3) should be called before "
665 "B<localtime_r>()."
666 msgstr ""
667 "Gemäß POSIX.1 wird B<localtime>() benötigt, um sich so zu verhalten, als sei "
668 "B<tzset>(3) aufgerufen worden, während B<localtime_r>() nicht diese "
669 "Anforderung stellt. Für portierbaren Code sollte B<tzset>(3) vor "
670 "B<localtime_r>() aufgerufen werden."
671
672 #. type: SH
673 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
674 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
675 #, no-wrap
676 msgid "STANDARDS"
677 msgstr "STANDARDS"
678
679 #. type: TP
680 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
681 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
682 #, no-wrap
683 msgid "B<gmtime>()"
684 msgstr "B<gmtime>()"
685
686 #. type: TQ
687 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
688 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
689 #, no-wrap
690 msgid "B<localtime>()"
691 msgstr "B<localtime>()"
692
693 #. type: TQ
694 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
695 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
696 #, no-wrap
697 msgid "B<mktime>()"
698 msgstr "B<mktime>()"
699
700 #. type: Plain text
701 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
702 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
703 msgid "C23, POSIX.1-2024."
704 msgstr "C23, POSIX.1-2024."
705
706 #. type: TP
707 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
708 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
709 #, no-wrap
710 msgid "B<gmtime_r>()"
711 msgstr "B<gmtime_r>()"
712
713 #. type: TQ
714 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
715 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
716 #, no-wrap
717 msgid "B<localtime_r>()"
718 msgstr "B<localtime_r>()"
719
720 #. type: Plain text
721 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
722 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
723 msgid "POSIX.1-2024."
724 msgstr "POSIX.1-2024."
725
726 #. type: TQ
727 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
728 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
729 #, no-wrap
730 msgid "B<ctime_r>()"
731 msgstr "B<ctime_r>()"
732
733 #. type: Plain text
734 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
735 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
736 msgid "None."
737 msgstr "Keine."
738
739 #. type: SH
740 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
741 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
742 #, no-wrap
743 msgid "HISTORY"
744 msgstr "GESCHICHTE"
745
746 #. type: Plain text
747 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
748 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
749 msgid "C89, POSIX.1-1988."
750 msgstr "C89, POSIX.1-1988."
751
752 #. type: Plain text
753 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
754 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
755 msgid ""
756 "C89, POSIX.1-1988. Marked obsolescent in C23 and in POSIX.1-2008 "
757 "(recommending B<strftime>(3))."
758 msgstr ""
759 "C89, POSIX.1-1988. Wurde in C23 und POSIX.1-2008 als veraltet markiert (und "
760 "B<strftime>(3) empfohlen)."
761
762 #. type: Plain text
763 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
764 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
765 msgid "POSIX.1-1996."
766 msgstr "POSIX.1-1996."
767
768 #. type: Plain text
769 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
770 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
771 msgid ""
772 "POSIX.1-1996. Marked obsolescent in POSIX.1-2008. Removed in POSIX.1-2024 "
773 "(recommending B<strftime>(3))."
774 msgstr ""
775 "POSIX.1-1996. Wurde in POSIX.1-2008 als veraltet markiert. Entfernt in "
776 "POSIX.1-2024 (und Empfehlung für B<strftime>(3))."
777
778 #. type: SH
779 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
780 #: opensuse-leap-16-1 opensuse-tumbleweed
781 #, no-wrap
782 msgid "CAVEATS"
783 msgstr "WARNUNGEN"
784
785 #. type: Plain text
786 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
787 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
788 msgid ""
789 "The four functions B<asctime>(), B<ctime>(), B<gmtime>(), and "
790 "B<localtime>() return a pointer to static data and hence are not thread-"
791 "safe. The thread-safe versions, B<asctime_r>(), B<ctime_r>(), "
792 "B<gmtime_r>(), and B<localtime_r>(), are specified by SUSv2."
793 msgstr ""
794 "Die vier Funktionen B<asctime>(), B<ctime>(), B<gmtime>() und B<localtime>() "
795 "geben einen Zeiger auf statische Daten zurück und sind daher nicht "
796 "multithread-fähig. Multithread-fähige Versionen B<asctime_r>(), "
797 "B<ctime_r>(), B<gmtime_r>() und B<localtime_r> werden durch SUSv2 "
798 "spezifiziert."
799
800 #. type: Plain text
801 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
802 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
803 msgid ""
804 "POSIX.1 says: \"The B<asctime>(), B<ctime>(), B<gmtime>(), and "
805 "B<localtime>() functions shall return values in one of two static objects: "
806 "a broken-down time structure and an array of type I<char>. Execution of any "
807 "of the functions that return a pointer to one of these object types may "
808 "overwrite the information in any object of the same type pointed to by the "
809 "value returned from any previous call to any of them.\" This can occur in "
810 "the glibc implementation."
811 msgstr ""
812 "POSIX.1 sagt: »Die Funktionen B<asctime>(), B<ctime>(), B<gmtime>() und "
813 "B<localtime>() müssen Rückgabewerte in einem von zwei statischen Objekten "
814 "liefern: einer aufgeschlüsselten Zeit und einem Feld des Typs I<char>. Das "
815 "Ausführen irgendeiner der Funktionen, die einen Zeiger auf einen dieser "
816 "Objekttypen zurückliefert, können die Informationen in jedem Objekt des "
817 "gleichen Typs überschreiben, auf den durch den zurückgelieferten Werte von "
818 "einem vorherigen Aufruf von einem von ihnen gezeigt wird.« Dies kann in der "
819 "Glibc-Implementierung vorkommen."
820
821 #. type: SS
822 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
823 #: opensuse-leap-16-1 opensuse-tumbleweed
824 #, no-wrap
825 msgid "mktime()"
826 msgstr "mktime()"
827
828 #. type: Plain text
829 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
830 #: opensuse-leap-16-1 opensuse-tumbleweed
831 msgid ""
832 "I<(time_t) -1> can represent a valid time (one second before the Epoch). To "
833 "determine whether B<mktime>() failed, one must use the I<tm-E<gt>tm_wday> "
834 "field. See the example program in EXAMPLES."
835 msgstr ""
836 "I<(time_t) -1> kann eine gültige Zeit darstellen (eine Sekunde vor dem "
837 "Epoch). Um zu bestimmen, ob B<mktime>() fehlgeschlagen ist, müssen Sie das "
838 "Feld I<tm-E<gt>tm_wday> verwenden. Siehe dazu des Beispielprogramm in "
839 "BEISPIELE."
840
841 #. type: Plain text
842 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
843 #: opensuse-leap-16-1 opensuse-tumbleweed
844 msgid ""
845 "The handling of a non-negative I<tm_isdst> in B<mktime>() is poorly "
846 "specified, and passing a value that is incorrect for the time specified "
847 "yields unspecified results. Since B<mktime>() is one of the few functions "
848 "that knows when DST is in effect, providing a correct value may be "
849 "difficult. One workaround for this is to call B<mktime>() twice, once with "
850 "I<tm_isdst> set to zero, and once with I<tm_isdst> set to a positive value, "
851 "and discarding the results from the call that changes it. If neither call "
852 "changes I<tm_isdst> then the time specified probably happens during a fall-"
853 "back period where DST begins or ends, and both results are valid but "
854 "represent two different times. If both calls change it, that could indicate "
855 "a fall-forward transition, or some other reason why the time specified does "
856 "not exist."
857 msgstr ""
858 "Der Umgang mit nichtnegativen I<tm_isdst> in B<mktime>() ist schlecht "
859 "spezifiziert und die Übergabe eines Wertes, der für die festgelegte Zeit "
860 "nicht korrekt ist, führt zu nicht spezifizierten Ergebnissen. Da B<mktime>() "
861 "eine der wenigen Funktionen ist, die weiß, wann Sommerzeit gilt, kann die "
862 "Übergabe eines korrekten Wertes schwierig sein. Eine Hilfskonstruktion "
863 "besteht darin, B<mktime>() zweimal aufzurufen, einmal mit I<tm_isdst> auf "
864 "Null gesetzt und einmal mit I<tm_isdst> auf einen positiven Wert gesetzt und "
865 "dann dem Verwerfen des Wertes des Aufrufs, der diesen änderte. Falls kein "
866 "Aufruf I<tm_isdst> ändert, dann passiert die angegebene Zeit wahrscheinlich "
867 "während einer Rückfallperiode, zu der Sommerzeit beginnt oder endet und "
868 "beide Ergebnisse sind gültig, stellen aber verschiedene Zeiten dar. Falls "
869 "beide Aufrufe sie ändern, könnte das einen vorwärts fallenden Übergang "
870 "darstellen oder einen anderen Grund, warum die angegebene Zeit nicht "
871 "existiert."
872
873 #. type: Plain text
874 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
875 #: opensuse-leap-16-1 opensuse-tumbleweed
876 msgid ""
877 "The specification of time zones and daylight saving time are up to regional "
878 "governments, change often, and may include discontinuities beyond "
879 "I<mktime>'s ability to document a result. For example, a change in the "
880 "timezone definition may cause a clock time to be repeated or skipped without "
881 "a corresponding DST change."
882 msgstr ""
883 "DIe Spezifizierung von Zeitzonen und Sommerzeitregeln unterliegt regionalen "
884 "Regierungen, ändert sich oft und könnte solche Sprünge enthalten, die "
885 "I<mktime> als Ergebnis nicht mehr dokumentieren kann. Beispielsweise könnte "
886 "eine Änderung in der Zeitzonendefinition dazu führen, dass eine Uhrzeit "
887 "wiederholt oder übersprungen wird, ohne dass eine entsprechende "
888 "Sommerzeitregelung vorliegt."
889
890 #. type: SH
891 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
892 #: opensuse-leap-16-1 opensuse-tumbleweed
893 #, no-wrap
894 msgid "EXAMPLES"
895 msgstr "BEISPIELE"
896
897 #. type: Plain text
898 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
899 #: opensuse-leap-16-1 opensuse-tumbleweed
900 msgid ""
901 "The program below defines a wrapper that allows detecting invalid and "
902 "ambiguous times, with B<EINVAL> and B<ENOTUNIQ>, respectively."
903 msgstr ""
904 "Das nachfolgende Programm definiert einen Wrapper, der die Erkennung von "
905 "ungültigen und mehrdeutigen Zeiten mittels B<EINVAL> bzw. B<ENOTUNIQ> "
906 "erlaubt."
907
908 #. type: Plain text
909 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
910 #: opensuse-leap-16-1 opensuse-tumbleweed
911 msgid "The following shell session shows sample runs of the program:"
912 msgstr "Die nachfolgende Shell-Sitzung zeigt Beispielläufe des Programms:"
913
914 #. type: Plain text
915 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
916 #: opensuse-leap-16-1 opensuse-tumbleweed
917 #, no-wrap
918 msgid ""
919 "$\\ B<TZ=UTC ./a.out 1969 12 31 23 59 59 0>;\n"
920 "-1\n"
921 "$\n"
922 "$\\ B<export TZ=Europe/Madrid>;\n"
923 "$\n"
924 "$\\ B<./a.out 2147483647 2147483647 00 00 00 00 -1>;\n"
925 "a.out: mktime: Value too large for defined data type\n"
926 "$\n"
927 "$\\ B<./a.out 2024 08 23 00 17 53 -1>;\n"
928 "1724365073\n"
929 "$\\ B<./a.out 2024 08 23 00 17 53 0>;\n"
930 "a.out: my_mktime: Invalid argument\n"
931 "1724368673\n"
932 "$\\ B<./a.out 2024 08 23 00 17 53 1>;\n"
933 "1724365073\n"
934 "$\n"
935 "$\\ B<./a.out 2024 02 23 00 17 53 -1>;\n"
936 "1708643873\n"
937 "$\\ B<./a.out 2024 02 23 00 17 53 0>;\n"
938 "1708643873\n"
939 "$\\ B<./a.out 2024 02 23 00 17 53 1>;\n"
940 "a.out: my_mktime: Invalid argument\n"
941 "1708640273\n"
942 "$\n"
943 "$\\ B<./a.out 2023 03 26 02 17 53 -1>;\n"
944 "a.out: my_mktime: Invalid argument\n"
945 "1679793473\n"
946 "$\n"
947 "$\\ B<./a.out 2023 10 29 02 17 53 -1>;\n"
948 "a.out: my_mktime: Name not unique on network\n"
949 "1698542273\n"
950 "$\\ B<./a.out 2023 10 29 02 17 53 0>;\n"
951 "1698542273\n"
952 "$\\ B<./a.out 2023 10 29 02 17 53 1>;\n"
953 "1698538673\n"
954 "$\n"
955 "$\\ B<./a.out 2023 02 29 12 00 00 -1>;\n"
956 "a.out: my_mktime: Invalid argument\n"
957 "1677668400\n"
958 msgstr ""
959 "$\\ B<TZ=UTC ./a.out 1969 12 31 23 59 59 0>;\n"
960 "-1\n"
961 "$\n"
962 "$\\ B<export TZ=Europe/Madrid>;\n"
963 "$\n"
964 "$\\ B<./a.out 2147483647 2147483647 00 00 00 00 -1>;\n"
965 "a.out: mktime: Value too large for defined data type\n"
966 "$\n"
967 "$\\ B<./a.out 2024 08 23 00 17 53 -1>;\n"
968 "1724365073\n"
969 "$\\ B<./a.out 2024 08 23 00 17 53 0>;\n"
970 "a.out: my_mktime: Invalid argument\n"
971 "1724368673\n"
972 "$\\ B<./a.out 2024 08 23 00 17 53 1>;\n"
973 "1724365073\n"
974 "$\n"
975 "$\\ B<./a.out 2024 02 23 00 17 53 -1>;\n"
976 "1708643873\n"
977 "$\\ B<./a.out 2024 02 23 00 17 53 0>;\n"
978 "1708643873\n"
979 "$\\ B<./a.out 2024 02 23 00 17 53 1>;\n"
980 "a.out: my_mktime: Invalid argument\n"
981 "1708640273\n"
982 "$\n"
983 "$\\ B<./a.out 2023 03 26 02 17 53 -1>;\n"
984 "a.out: my_mktime: Invalid argument\n"
985 "1679793473\n"
986 "$\n"
987 "$\\ B<./a.out 2023 10 29 02 17 53 -1>;\n"
988 "a.out: my_mktime: Name not unique on network\n"
989 "1698542273\n"
990 "$\\ B<./a.out 2023 10 29 02 17 53 0>;\n"
991 "1698542273\n"
992 "$\\ B<./a.out 2023 10 29 02 17 53 1>;\n"
993 "1698538673\n"
994 "$\n"
995 "$\\ B<./a.out 2023 02 29 12 00 00 -1>;\n"
996 "a.out: my_mktime: Invalid argument\n"
997 "1677668400\n"
998
999 #. type: SS
1000 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1001 #: opensuse-leap-16-1 opensuse-tumbleweed
1002 #, no-wrap
1003 msgid "Program source: mktime.c"
1004 msgstr "Programmquelltext: mktime.c"
1005
1006 #. type: Plain text
1007 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1008 #: opensuse-tumbleweed
1009 #, no-wrap
1010 msgid ""
1011 "#include E<lt>err.hE<gt>\n"
1012 "#include E<lt>errno.hE<gt>\n"
1013 "#include E<lt>stdint.hE<gt>\n"
1014 "#include E<lt>stdio.hE<gt>\n"
1015 "#include E<lt>stdlib.hE<gt>\n"
1016 "#include E<lt>string.hE<gt>\n"
1017 "#include E<lt>time.hE<gt>\n"
1018 "\\&\n"
1019 "#define is_signed(T) ((T) -1 E<lt> 1)\n"
1020 "\\&\n"
1021 "static time_t my_mktime(struct tm *tp);\n"
1022 "\\&\n"
1023 "int\n"
1024 "main(int argc, char *argv[])\n"
1025 "{\n"
1026 " char **p;\n"
1027 " time_t t;\n"
1028 " struct tm tm;\n"
1029 "\\&\n"
1030 " if (argc != 8) {\n"
1031 " fprintf(stderr, \"Usage: %s yyyy mm dd HH MM SS isdst\\[rs]n\", argv[0]);\n"
1032 " exit(EXIT_FAILURE);\n"
1033 " }\n"
1034 "\\&\n"
1035 " p = &argv[1];\n"
1036 " tm.tm_year = atoi(*p++) - 1900;\n"
1037 " tm.tm_mon = atoi(*p++) - 1;\n"
1038 " tm.tm_mday = atoi(*p++);\n"
1039 " tm.tm_hour = atoi(*p++);\n"
1040 " tm.tm_min = atoi(*p++);\n"
1041 " tm.tm_sec = atoi(*p++);\n"
1042 " tm.tm_isdst = atoi(*p++);\n"
1043 "\\&\n"
1044 " errno = 0;\n"
1045 " tm.tm_wday = -1;\n"
1046 " t = my_mktime(&tm);\n"
1047 " if (tm.tm_wday == -1)\n"
1048 " err(EXIT_FAILURE, \"mktime\");\n"
1049 " if (errno == EINVAL || errno == ENOTUNIQ)\n"
1050 " warn(\"my_mktime\");\n"
1051 "\\&\n"
1052 " if (is_signed(time_t))\n"
1053 " printf(\"%jd\\[rs]n\", (intmax_t) t);\n"
1054 " else\n"
1055 " printf(\"%ju\\[rs]n\", (uintmax_t) t);\n"
1056 "\\&\n"
1057 " exit(EXIT_SUCCESS);\n"
1058 "}\n"
1059 "\\&\n"
1060 "static time_t\n"
1061 "my_mktime(struct tm *tp)\n"
1062 "{\n"
1063 " int e, isdst;\n"
1064 " time_t t;\n"
1065 " struct tm tm;\n"
1066 " unsigned char wday[sizeof(tp-E<gt>tm_wday)];\n"
1067 "\\&\n"
1068 " e = errno;\n"
1069 "\\&\n"
1070 " tm = *tp;\n"
1071 " isdst = tp-E<gt>tm_isdst;\n"
1072 "\\&\n"
1073 " memcpy(wday, &tp-E<gt>tm_wday, sizeof(wday));\n"
1074 " tp-E<gt>tm_wday = -1;\n"
1075 " t = mktime(tp);\n"
1076 " if (tp-E<gt>tm_wday == -1) {\n"
1077 " memcpy(&tp-E<gt>tm_wday, wday, sizeof(wday));\n"
1078 " return -1;\n"
1079 " }\n"
1080 "\\&\n"
1081 " if (isdst == -1)\n"
1082 " tm.tm_isdst = tp-E<gt>tm_isdst;\n"
1083 "\\&\n"
1084 " if ( tm.tm_sec != tp-E<gt>tm_sec\n"
1085 " || tm.tm_min != tp-E<gt>tm_min\n"
1086 " || tm.tm_hour != tp-E<gt>tm_hour\n"
1087 " || tm.tm_mday != tp-E<gt>tm_mday\n"
1088 " || tm.tm_mon != tp-E<gt>tm_mon\n"
1089 " || tm.tm_year != tp-E<gt>tm_year\n"
1090 " || tm.tm_isdst != tp-E<gt>tm_isdst)\n"
1091 " {\n"
1092 " errno = EINVAL;\n"
1093 " return t;\n"
1094 " }\n"
1095 "\\&\n"
1096 " if (isdst != -1)\n"
1097 " goto out;\n"
1098 "\\&\n"
1099 " tm = *tp;\n"
1100 " tm.tm_isdst = !tm.tm_isdst;\n"
1101 "\\&\n"
1102 " tm.tm_wday = -1;\n"
1103 " mktime(&tm);\n"
1104 " if (tm.tm_wday == -1)\n"
1105 " goto out;\n"
1106 "\\&\n"
1107 " if (tm.tm_isdst != tp-E<gt>tm_isdst) {\n"
1108 " errno = ENOTUNIQ;\n"
1109 " return t;\n"
1110 " }\n"
1111 "out:\n"
1112 " errno = e;\n"
1113 " return t;\n"
1114 "}\n"
1115 msgstr ""
1116 "#include E<lt>err.hE<gt>\n"
1117 "#include E<lt>errno.hE<gt>\n"
1118 "#include E<lt>stdint.hE<gt>\n"
1119 "#include E<lt>stdio.hE<gt>\n"
1120 "#include E<lt>stdlib.hE<gt>\n"
1121 "#include E<lt>string.hE<gt>\n"
1122 "#include E<lt>time.hE<gt>\n"
1123 "\\&\n"
1124 "#define is_signed(T) ((T) -1 E<lt> 1)\n"
1125 "\\&\n"
1126 "static time_t my_mktime(struct tm *tp);\n"
1127 "\\&\n"
1128 "int\n"
1129 "main(int argc, char *argv[])\n"
1130 "{\n"
1131 " char **p;\n"
1132 " time_t t;\n"
1133 " struct tm tm;\n"
1134 "\\&\n"
1135 " if (argc != 8) {\n"
1136 " fprintf(stderr, \"Aufruf: %s yyyy mm dd HH MM SS isdst\\[rs]n\", argv[0]);\n"
1137 " exit(EXIT_FAILURE);\n"
1138 " }\n"
1139 "\\&\n"
1140 " p = &argv[1];\n"
1141 " tm.tm_year = atoi(*p++) - 1900;\n"
1142 " tm.tm_mon = atoi(*p++) - 1;\n"
1143 " tm.tm_mday = atoi(*p++);\n"
1144 " tm.tm_hour = atoi(*p++);\n"
1145 " tm.tm_min = atoi(*p++);\n"
1146 " tm.tm_sec = atoi(*p++);\n"
1147 " tm.tm_isdst = atoi(*p++);\n"
1148 "\\&\n"
1149 " errno = 0;\n"
1150 " tm.tm_wday = -1;\n"
1151 " t = my_mktime(&tm);\n"
1152 " if (tm.tm_wday == -1)\n"
1153 " err(EXIT_FAILURE, \"mktime\");\n"
1154 " if (errno == EINVAL || errno == ENOTUNIQ)\n"
1155 " warn(\"my_mktime\");\n"
1156 "\\&\n"
1157 " if (is_signed(time_t))\n"
1158 " printf(\"%jd\\[rs]n\", (intmax_t) t);\n"
1159 " else\n"
1160 " printf(\"%ju\\[rs]n\", (uintmax_t) t);\n"
1161 "\\&\n"
1162 " exit(EXIT_SUCCESS);\n"
1163 "}\n"
1164 "\\&\n"
1165 "static time_t\n"
1166 "my_mktime(struct tm *tp)\n"
1167 "{\n"
1168 " int e, isdst;\n"
1169 " time_t t;\n"
1170 " struct tm tm;\n"
1171 " unsigned char wday[sizeof(tp-E<gt>tm_wday)];\n"
1172 "\\&\n"
1173 " e = errno;\n"
1174 "\\&\n"
1175 " tm = *tp;\n"
1176 " isdst = tp-E<gt>tm_isdst;\n"
1177 "\\&\n"
1178 " memcpy(wday, &tp-E<gt>tm_wday, sizeof(wday));\n"
1179 " tp-E<gt>tm_wday = -1;\n"
1180 " t = mktime(tp);\n"
1181 " if (tp-E<gt>tm_wday == -1) {\n"
1182 " memcpy(&tp-E<gt>tm_wday, wday, sizeof(wday));\n"
1183 " return -1;\n"
1184 " }\n"
1185 "\\&\n"
1186 " if (isdst == -1)\n"
1187 " tm.tm_isdst = tp-E<gt>tm_isdst;\n"
1188 "\\&\n"
1189 " if ( tm.tm_sec != tp-E<gt>tm_sec\n"
1190 " || tm.tm_min != tp-E<gt>tm_min\n"
1191 " || tm.tm_hour != tp-E<gt>tm_hour\n"
1192 " || tm.tm_mday != tp-E<gt>tm_mday\n"
1193 " || tm.tm_mon != tp-E<gt>tm_mon\n"
1194 " || tm.tm_year != tp-E<gt>tm_year\n"
1195 " || tm.tm_isdst != tp-E<gt>tm_isdst)\n"
1196 " {\n"
1197 " errno = EINVAL;\n"
1198 " return t;\n"
1199 " }\n"
1200 "\\&\n"
1201 " if (isdst != -1)\n"
1202 " goto out;\n"
1203 "\\&\n"
1204 " tm = *tp;\n"
1205 " tm.tm_isdst = !tm.tm_isdst;\n"
1206 "\\&\n"
1207 " tm.tm_wday = -1;\n"
1208 " mktime(&tm);\n"
1209 " if (tm.tm_wday == -1)\n"
1210 " goto out;\n"
1211 "\\&\n"
1212 " if (tm.tm_isdst != tp-E<gt>tm_isdst) {\n"
1213 " errno = ENOTUNIQ;\n"
1214 " return t;\n"
1215 " }\n"
1216 "out:\n"
1217 " errno = e;\n"
1218 " return t;\n"
1219 "}\n"
1220
1221 #. #-#-#-#-# archlinux: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1222 #. SRC END
1223 #. type: SH
1224 #. #-#-#-#-# debian-trixie: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1225 #. type: SH
1226 #. #-#-#-#-# debian-unstable: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1227 #. SRC END
1228 #. type: SH
1229 #. #-#-#-#-# fedora-44: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1230 #. SRC END
1231 #. type: SH
1232 #. #-#-#-#-# fedora-rawhide: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1233 #. SRC END
1234 #. type: SH
1235 #. #-#-#-#-# mageia-cauldron: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1236 #. SRC END
1237 #. type: SH
1238 #. #-#-#-#-# opensuse-leap-16-1: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1239 #. SRC END
1240 #. type: SH
1241 #. #-#-#-#-# opensuse-tumbleweed: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1242 #. SRC END
1243 #. type: SH
1244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1246 #, no-wrap
1247 msgid "SEE ALSO"
1248 msgstr "SIEHE AUCH"
1249
1250 #. type: Plain text
1251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1253 msgid ""
1254 "B<date>(1), B<gettimeofday>(2), B<time>(2), B<utime>(2), B<clock>(3), "
1255 "B<difftime>(3), B<strftime>(3), B<strptime>(3), B<timegm>(3), B<tzset>(3), "
1256 "B<time>(7)"
1257 msgstr ""
1258 "B<date>(1), B<gettimeofday>(2), B<time>(2), B<utime>(2), B<clock>(3), "
1259 "B<difftime>(3), B<strftime>(3), B<strptime>(3), B<timegm>(3), B<tzset>(3), "
1260 "B<time>(7)"
1261
1262 #. type: TH
1263 #: debian-trixie
1264 #, no-wrap
1265 msgid "2024-06-15"
1266 msgstr "15. Juni 2024"
1267
1268 #. type: TH
1269 #: debian-trixie
1270 #, no-wrap
1271 msgid "Linux man-pages 6.9.1"
1272 msgstr "Linux man-pages 6.9.1"
1273
1274 #. type: Plain text
1275 #: debian-trixie
1276 msgid "Standard C library (I<libc>, I<-lc>)"
1277 msgstr "Standard-C-Bibliothek (I<libc>, I<-lc>)"
1278
1279 #. type: Plain text
1280 #: debian-trixie fedora-44 fedora-rawhide
1281 msgid ""
1282 "The call B<ctime(>I<t>B<)> is equivalent to B<asctime(localtime(>I<t>B<))>. "
1283 "It converts the calendar time I<t> into a null-terminated string of the form"
1284 msgstr ""
1285 "Der Aufruf B<ctime(>I<t>B<)> entspricht B<asctime(localtime(>I<t>B<))>. Er "
1286 "konvertiert die Kalenderzeit I<t> in eine durch Null beendete Zeichenkette "
1287 "der Form"
1288
1289 #. type: Plain text
1290 #: debian-trixie
1291 msgid ""
1292 "The B<mktime>() function converts a broken-down time structure, expressed "
1293 "as local time, to calendar time representation. The function ignores the "
1294 "values supplied by the caller in the I<tm_wday> and I<tm_yday> fields. The "
1295 "value specified in the I<tm_isdst> field informs B<mktime>() whether or not "
1296 "daylight saving time (DST) is in effect for the time supplied in the I<tm> "
1297 "structure: a positive value means DST is in effect; zero means that DST is "
1298 "not in effect; and a negative value means that B<mktime>() should (use "
1299 "timezone information and system databases to) attempt to determine whether "
1300 "DST is in effect at the specified time."
1301 msgstr ""
1302 "Die Funktion B<mktime>() wandelt die aufgeschlüsselten Zeitstruktur, die als "
1303 "lokale Zeit ausgedrückt wird, in eine Entsprechung der Kalenderzeit. Die "
1304 "Funktion ignoriert die Werte, die der Aufrufende in den Feldern I<tm_wday> "
1305 "und I<tm_yday> mitgegeben hat, egal ob in der Zeit der mitgegebenen Struktur "
1306 "I<tm> Sommerzeit ist oder nicht: Ein positiver Wert bedeutet, dass "
1307 "Sommerzeit ist, Null bedeutet, dass keine Sommerzeit ist und ein negativer "
1308 "Wert bedeutet, dass B<mktime>() (mit Zeitzoneninformationen und "
1309 "Systemdatenbanken) versuchen sollte zu bestimmen, ob zur angegebenen Zeit "
1310 "Sommerzeit ist oder nicht."
1311
1312 #. type: Plain text
1313 #: debian-trixie
1314 msgid ""
1315 "On error, B<mktime>() returns the value I<(time_t)\\ -1>. The remaining "
1316 "functions return NULL on error. On error, I<errno> is set to indicate the "
1317 "error."
1318 msgstr ""
1319 "Im Fehlerfall liefert B<mktime>() den Wert I<(time_t)\\ -1> zurück. Die "
1320 "verbliebenen Funktionen liefern NULL im Fehlerfall zurück. Im Fehlerfall "
1321 "wird I<errno> gesetzt, um den Fehler anzuzeigen."
1322
1323 #. type: SH
1324 #: debian-trixie
1325 #, no-wrap
1326 msgid "NOTES"
1327 msgstr "ANMERKUNGEN"
1328
1329 #. type: TH
1330 #: fedora-44 fedora-rawhide
1331 #, no-wrap
1332 msgid "2025-02-18"
1333 msgstr "18. Februar 2025"
1334
1335 #. type: TH
1336 #: fedora-44 fedora-rawhide
1337 #, no-wrap
1338 msgid "Linux man-pages 6.13"
1339 msgstr "Linux man-pages 6.13"
1340
1341 #. type: Plain text
1342 #: fedora-44 fedora-rawhide
1343 #, no-wrap
1344 msgid ""
1345 "#include E<lt>err.hE<gt>\n"
1346 "#include E<lt>errno.hE<gt>\n"
1347 "#include E<lt>stdint.hE<gt>\n"
1348 "#include E<lt>stdio.hE<gt>\n"
1349 "#include E<lt>stdlib.hE<gt>\n"
1350 "#include E<lt>string.hE<gt>\n"
1351 "#include E<lt>time.hE<gt>\n"
1352 "\\&\n"
1353 "#define is_signed(T) ((T) -1 E<lt> 1)\n"
1354 "\\&\n"
1355 "time_t my_mktime(struct tm *tp);\n"
1356 "\\&\n"
1357 "int\n"
1358 "main(int argc, char *argv[])\n"
1359 "{\n"
1360 " char **p;\n"
1361 " time_t t;\n"
1362 " struct tm tm;\n"
1363 "\\&\n"
1364 " if (argc != 8) {\n"
1365 " fprintf(stderr, \"Usage: %s yyyy mm dd HH MM SS isdst\\[rs]n\", argv[0]);\n"
1366 " exit(EXIT_FAILURE);\n"
1367 " }\n"
1368 "\\&\n"
1369 " p = &argv[1];\n"
1370 " tm.tm_year = atoi(*p++) - 1900;\n"
1371 " tm.tm_mon = atoi(*p++) - 1;\n"
1372 " tm.tm_mday = atoi(*p++);\n"
1373 " tm.tm_hour = atoi(*p++);\n"
1374 " tm.tm_min = atoi(*p++);\n"
1375 " tm.tm_sec = atoi(*p++);\n"
1376 " tm.tm_isdst = atoi(*p++);\n"
1377 "\\&\n"
1378 " errno = 0;\n"
1379 " tm.tm_wday = -1;\n"
1380 " t = my_mktime(&tm);\n"
1381 " if (tm.tm_wday == -1)\n"
1382 " err(EXIT_FAILURE, \"mktime\");\n"
1383 " if (errno == EINVAL || errno == ENOTUNIQ)\n"
1384 " warn(\"my_mktime\");\n"
1385 "\\&\n"
1386 " if (is_signed(time_t))\n"
1387 " printf(\"%jd\\[rs]n\", (intmax_t) t);\n"
1388 " else\n"
1389 " printf(\"%ju\\[rs]n\", (uintmax_t) t);\n"
1390 "\\&\n"
1391 " exit(EXIT_SUCCESS);\n"
1392 "}\n"
1393 "\\&\n"
1394 "time_t\n"
1395 "my_mktime(struct tm *tp)\n"
1396 "{\n"
1397 " int e, isdst;\n"
1398 " time_t t;\n"
1399 " struct tm tm;\n"
1400 " unsigned char wday[sizeof(tp-E<gt>tm_wday)];\n"
1401 "\\&\n"
1402 " e = errno;\n"
1403 "\\&\n"
1404 " tm = *tp;\n"
1405 " isdst = tp-E<gt>tm_isdst;\n"
1406 "\\&\n"
1407 " memcpy(wday, &tp-E<gt>tm_wday, sizeof(wday));\n"
1408 " tp-E<gt>tm_wday = -1;\n"
1409 " t = mktime(tp);\n"
1410 " if (tp-E<gt>tm_wday == -1) {\n"
1411 " memcpy(&tp-E<gt>tm_wday, wday, sizeof(wday));\n"
1412 " return -1;\n"
1413 " }\n"
1414 "\\&\n"
1415 " if (isdst == -1)\n"
1416 " tm.tm_isdst = tp-E<gt>tm_isdst;\n"
1417 "\\&\n"
1418 " if ( tm.tm_sec != tp-E<gt>tm_sec\n"
1419 " || tm.tm_min != tp-E<gt>tm_min\n"
1420 " || tm.tm_hour != tp-E<gt>tm_hour\n"
1421 " || tm.tm_mday != tp-E<gt>tm_mday\n"
1422 " || tm.tm_mon != tp-E<gt>tm_mon\n"
1423 " || tm.tm_year != tp-E<gt>tm_year\n"
1424 " || tm.tm_isdst != tp-E<gt>tm_isdst)\n"
1425 " {\n"
1426 " errno = EINVAL;\n"
1427 " return t;\n"
1428 " }\n"
1429 "\\&\n"
1430 " if (isdst != -1)\n"
1431 " goto out;\n"
1432 "\\&\n"
1433 " tm = *tp;\n"
1434 " tm.tm_isdst = !tm.tm_isdst;\n"
1435 "\\&\n"
1436 " tm.tm_wday = -1;\n"
1437 " mktime(&tm);\n"
1438 " if (tm.tm_wday == -1)\n"
1439 " goto out;\n"
1440 "\\&\n"
1441 " if (tm.tm_isdst != tp-E<gt>tm_isdst) {\n"
1442 " errno = ENOTUNIQ;\n"
1443 " return t;\n"
1444 " }\n"
1445 "out:\n"
1446 " errno = e;\n"
1447 " return t;\n"
1448 "}\n"
1449 msgstr ""
1450 "#include E<lt>err.hE<gt>\n"
1451 "#include E<lt>errno.hE<gt>\n"
1452 "#include E<lt>stdint.hE<gt>\n"
1453 "#include E<lt>stdio.hE<gt>\n"
1454 "#include E<lt>stdlib.hE<gt>\n"
1455 "#include E<lt>string.hE<gt>\n"
1456 "#include E<lt>time.hE<gt>\n"
1457 "\\&\n"
1458 "#define is_signed(T) ((T) -1 E<lt> 1)\n"
1459 "\\&\n"
1460 "time_t my_mktime(struct tm *tp);\n"
1461 "\\&\n"
1462 "int\n"
1463 "main(int argc, char *argv[])\n"
1464 "{\n"
1465 " char **p;\n"
1466 " time_t t;\n"
1467 " struct tm tm;\n"
1468 "\\&\n"
1469 " if (argc != 8) {\n"
1470 " fprintf(stderr, \"Aufruf: %s yyyy mm dd HH MM SS isdst\\[rs]n\", argv[0]);\n"
1471 " exit(EXIT_FAILURE);\n"
1472 " }\n"
1473 "\\&\n"
1474 " p = &argv[1];\n"
1475 " tm.tm_year = atoi(*p++) - 1900;\n"
1476 " tm.tm_mon = atoi(*p++) - 1;\n"
1477 " tm.tm_mday = atoi(*p++);\n"
1478 " tm.tm_hour = atoi(*p++);\n"
1479 " tm.tm_min = atoi(*p++);\n"
1480 " tm.tm_sec = atoi(*p++);\n"
1481 " tm.tm_isdst = atoi(*p++);\n"
1482 "\\&\n"
1483 " errno = 0;\n"
1484 " tm.tm_wday = -1;\n"
1485 " t = my_mktime(&tm);\n"
1486 " if (tm.tm_wday == -1)\n"
1487 " err(EXIT_FAILURE, \"mktime\");\n"
1488 " if (errno == EINVAL || errno == ENOTUNIQ)\n"
1489 " warn(\"my_mktime\");\n"
1490 "\\&\n"
1491 " if (is_signed(time_t))\n"
1492 " printf(\"%jd\\[rs]n\", (intmax_t) t);\n"
1493 " else\n"
1494 " printf(\"%ju\\[rs]n\", (uintmax_t) t);\n"
1495 "\\&\n"
1496 " exit(EXIT_SUCCESS);\n"
1497 "}\n"
1498 "\\&\n"
1499 "time_t\n"
1500 "my_mktime(struct tm *tp)\n"
1501 "{\n"
1502 " int e, isdst;\n"
1503 " time_t t;\n"
1504 " struct tm tm;\n"
1505 " unsigned char wday[sizeof(tp-E<gt>tm_wday)];\n"
1506 "\\&\n"
1507 " e = errno;\n"
1508 "\\&\n"
1509 " tm = *tp;\n"
1510 " isdst = tp-E<gt>tm_isdst;\n"
1511 "\\&\n"
1512 " memcpy(wday, &tp-E<gt>tm_wday, sizeof(wday));\n"
1513 " tp-E<gt>tm_wday = -1;\n"
1514 " t = mktime(tp);\n"
1515 " if (tp-E<gt>tm_wday == -1) {\n"
1516 " memcpy(&tp-E<gt>tm_wday, wday, sizeof(wday));\n"
1517 " return -1;\n"
1518 " }\n"
1519 "\\&\n"
1520 " if (isdst == -1)\n"
1521 " tm.tm_isdst = tp-E<gt>tm_isdst;\n"
1522 "\\&\n"
1523 " if ( tm.tm_sec != tp-E<gt>tm_sec\n"
1524 " || tm.tm_min != tp-E<gt>tm_min\n"
1525 " || tm.tm_hour != tp-E<gt>tm_hour\n"
1526 " || tm.tm_mday != tp-E<gt>tm_mday\n"
1527 " || tm.tm_mon != tp-E<gt>tm_mon\n"
1528 " || tm.tm_year != tp-E<gt>tm_year\n"
1529 " || tm.tm_isdst != tp-E<gt>tm_isdst)\n"
1530 " {\n"
1531 " errno = EINVAL;\n"
1532 " return t;\n"
1533 " }\n"
1534 "\\&\n"
1535 " if (isdst != -1)\n"
1536 " goto out;\n"
1537 "\\&\n"
1538 " tm = *tp;\n"
1539 " tm.tm_isdst = !tm.tm_isdst;\n"
1540 "\\&\n"
1541 " tm.tm_wday = -1;\n"
1542 " mktime(&tm);\n"
1543 " if (tm.tm_wday == -1)\n"
1544 " goto out;\n"
1545 "\\&\n"
1546 " if (tm.tm_isdst != tp-E<gt>tm_isdst) {\n"
1547 " errno = ENOTUNIQ;\n"
1548 " return t;\n"
1549 " }\n"
1550 "out:\n"
1551 " errno = e;\n"
1552 " return t;\n"
1553 "}\n"
1554
1555 #. type: TH
1556 #: mageia-cauldron
1557 #, no-wrap
1558 msgid "Linux man-pages 6.17"
1559 msgstr "Linux man-pages 6.17"
1560
1561 #. type: TH
1562 #: opensuse-leap-16-1 opensuse-tumbleweed
1563 #, no-wrap
1564 msgid "Linux man-pages (unreleased)"
1565 msgstr "Linux man-pages (unveröffentlicht)"