Debian Codegraph @

po/pl/man3/ctime.3.po

raw
1 # Polish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Adam Byrtek <[email protected]>, 1998.
5 # Andrzej Krzysztofowicz <[email protected]>, 2001.
6 # Robert Luberda <[email protected]>, 2013, 2017, 2019.
7 # Michał Kułach <[email protected]>, 2014, 2016, 2024, 2025.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: manpages-pl\n"
11 "POT-Creation-Date: 2026-06-05 06:21+0200\n"
12 "PO-Revision-Date: 2025-06-03 21:38+0200\n"
13 "Last-Translator: Michał Kułach <[email protected]>\n"
14 "Language-Team: Polish <[email protected]>\n"
15 "Language: pl\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=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
20 "|| n%100>=20) ? 1 : 2);\n"
21 "X-Generator: Lokalize 22.12.3\n"
22
23 #. type: TH
24 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
25 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
26 #, no-wrap
27 msgid "ctime"
28 msgstr "ctime"
29
30 #. type: TH
31 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
32 #: opensuse-tumbleweed
33 #, no-wrap
34 msgid "2026-02-08"
35 msgstr "8 lutego 2026 r."
36
37 #. type: TH
38 #: archlinux debian-unstable
39 #, no-wrap
40 msgid "Linux man-pages 6.18"
41 msgstr "Linux man-pages 6.18"
42
43 #. type: SH
44 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
45 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
46 #, no-wrap
47 msgid "NAME"
48 msgstr "NAZWA"
49
50 #. type: Plain text
51 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
52 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
53 msgid ""
54 "asctime, ctime, gmtime, localtime, mktime, asctime_r, ctime_r, gmtime_r, "
55 "localtime_r - transform date and time to broken-down time or ASCII"
56 msgstr ""
57 "asctime, ctime, gmtime, localtime, mktime, asctime_r, ctime_r, gmtime_r, "
58 "localtime_r - konwertuje daty i czas do postaci czasu rozłożonego lub ASCII"
59
60 #. type: SH
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 #, no-wrap
64 msgid "LIBRARY"
65 msgstr "BIBLIOTEKA"
66
67 #. type: Plain text
68 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
69 #: opensuse-leap-16-1 opensuse-tumbleweed
70 msgid "Standard C library (I<libc>,\\ I<-lc>)"
71 msgstr "Standardowa biblioteka C (I<libc>,\\ I<-lc>)"
72
73 #. type: SH
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "SYNOPSIS"
78 msgstr "SKŁADNIA"
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "B<#include E<lt>time.hE<gt>>\n"
85 msgstr "B<#include E<lt>time.hE<gt>>\n"
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, no-wrap
91 msgid ""
92 "B<char *asctime(const struct tm *>I<tm>B<);>\n"
93 "B<char *asctime_r(const struct tm *restrict >I<tm>B<,>\n"
94 "B< char >I<buf>B<[restrict 26]);>\n"
95 msgstr ""
96 "B<char *asctime(const struct tm *>I<tm>B<);>\n"
97 "B<char *asctime_r(const struct tm *restrict >I<tm>B<,>\n"
98 "B< char >I<buf>B<[restrict 26]);>\n"
99
100 #. type: Plain text
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
103 #, no-wrap
104 msgid ""
105 "B<char *ctime(const time_t *>I<timep>B<);>\n"
106 "B<char *ctime_r(const time_t *restrict >I<timep>B<,>\n"
107 "B< char >I<buf>B<[restrict 26]);>\n"
108 msgstr ""
109 "B<char *ctime(const time_t *>I<timep>B<);>\n"
110 "B<char *ctime_r(const time_t *restrict >I<timep>B<,>\n"
111 "B< char >I<buf>B<[restrict 26]);>\n"
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 #, no-wrap
117 msgid ""
118 "B<struct tm *gmtime(const time_t *>I<timep>B<);>\n"
119 "B<struct tm *gmtime_r(const time_t *restrict >I<timep>B<,>\n"
120 "B< struct tm *restrict >I<result>B<);>\n"
121 msgstr ""
122 "B<struct tm *gmtime(const time_t *>I<timep>B<);>\n"
123 "B<struct tm *gmtime_r(const time_t *restrict >I<timep>B<,>\n"
124 "B< struct tm *restrict >I<result>B<);>\n"
125
126 #. type: Plain text
127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
129 #, no-wrap
130 msgid ""
131 "B<struct tm *localtime(const time_t *>I<timep>B<);>\n"
132 "B<struct tm *localtime_r(const time_t *restrict >I<timep>B<,>\n"
133 "B< struct tm *restrict >I<result>B<);>\n"
134 msgstr ""
135 "B<struct tm *localtime(const time_t *>I<timep>B<);>\n"
136 "B<struct tm *localtime_r(const time_t *restrict >I<timep>B<,>\n"
137 "B< struct tm *restrict >I<result>B<);>\n"
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 #, no-wrap
143 msgid "B<time_t mktime(struct tm *>I<tm>B<);>\n"
144 msgstr "B<time_t mktime(struct tm *>I<tm>B<);>\n"
145
146 #. type: Plain text
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 msgid ""
150 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
151 msgstr ""
152 "Wymagane ustawienia makr biblioteki glibc (patrz B<feature_test_macros>(7)):"
153
154 #. type: Plain text
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 msgid "B<asctime_r>(), B<ctime_r>(), B<gmtime_r>(), B<localtime_r>():"
158 msgstr "B<asctime_r>(), B<ctime_r>(), B<gmtime_r>(), B<localtime_r>():"
159
160 #. type: Plain text
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 #, no-wrap
164 msgid ""
165 " _POSIX_C_SOURCE\n"
166 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
167 msgstr ""
168 " _POSIX_C_SOURCE\n"
169 " || /* glibc w wersji E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
170
171 #. type: SH
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 #, no-wrap
175 msgid "DESCRIPTION"
176 msgstr "OPIS"
177
178 #. type: Plain text
179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
181 msgid ""
182 "The B<ctime>(), B<gmtime>(), and B<localtime>() functions all take an "
183 "argument of data type I<time_t>, which represents calendar time. When "
184 "interpreted as an absolute time value, it represents the number of seconds "
185 "elapsed since the Epoch, 1970-01-01 00:00:00 +0000 (UTC)."
186 msgstr ""
187 "Funkcje B<ctime>(), B<gmtime>() oraz B<localtime>() przyjmują argument typu "
188 "I<time_t>, reprezentujący czas kalendarzowy. Zinterpretowany jako "
189 "bezwzględna wartość czasu określa liczbę sekund, jakie upłynęły od początku "
190 "epoki, to jest od 1970-01-01 00:00:00 +0000 (UTC)."
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 "Funkcje B<asctime>() oraz B<mktime>() przyjmują jako argument czas "
201 "rozłożony, który jest reprezentacją podzieloną na rok, miesiąc, dzień itd."
202
203 #. type: Plain text
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 msgid ""
207 "Broken-down time is stored in the structure I<tm>, described in B<tm>(3type)."
208 msgstr ""
209 "Czas rozłożony jest przechowywany w strukturze I<tm>, opisanej w podręczniku "
210 "B<tm>(3type)."
211
212 #. type: Plain text
213 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
214 #: opensuse-tumbleweed
215 msgid ""
216 "The call B<ctime(>I<t>B<)> is equivalent to I<asctime(localtime(t))>. It "
217 "converts the calendar time I<t> into a null-terminated string of the form"
218 msgstr ""
219 "Wywołanie B<ctime(>I<t>B<)> jest równoważne I<asctime(localtime(t))>. "
220 "Przekształca czas kalendarzowy I<t> na zakończony znakiem null łańcuch o "
221 "postaci"
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 #, no-wrap
227 msgid "\"Wed Jun 30 21:49:08 1993\\[rs]n\"\n"
228 msgstr "\"śro, sty 30 21:49:08 1993\\[rs]n\"\n"
229
230 #. type: Plain text
231 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
232 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
233 msgid ""
234 "The abbreviations for the days of the week are \"Sun\", \"Mon\", \"Tue\", "
235 "\"Wed\", \"Thu\", \"Fri\", and \"Sat\". The abbreviations for the months "
236 "are \"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", "
237 "\"Sep\", \"Oct\", \"Nov\", and \"Dec\". The return value points to a "
238 "statically allocated string which might be overwritten by subsequent calls "
239 "to any of the date and time functions. The function also sets the external "
240 "variables I<tzname>, I<timezone>, and I<daylight> as if it called "
241 "B<tzset>(3). The reentrant version B<ctime_r>() does the same, but stores "
242 "the string in a user-supplied buffer which should have room for at least 26 "
243 "bytes. It need not set I<tzname>, I<timezone>, and I<daylight>."
244 msgstr ""
245 "Skróty dni tygodnia to \"nie\", \"pon\", \"wto\", \"śro\", \"czw\", \"pią\" "
246 "i \"sob\". Skróty miesięcy to \"sty\", \"lut\", \"mar\", \"kwi\", \"maj\", "
247 "\"cze\", \"lip\", \"sie\", \"wrz\", \"paź\", \"lis\" i \"gru\". Zwracany "
248 "jest wskaźnik do statycznego łańcucha, który może zostać nadpisany przy "
249 "kolejnym wywołaniu dowolnej funkcji daty i czasu. Funkcja ustawia również "
250 "zewnętrzne zmienne I<tzname>, I<timezone> i I<daylight> tak, jakby "
251 "wywoływała B<tzset>(3). Wielowątkowa wersja tej funkcji, B<ctime_r>(), robi "
252 "to samo, ale zapisuje łańcuch w podanym przez użytkownika buforze, który "
253 "powinien móc pomieścić co najmniej 26 znaków. Nie musi ona ustawiać "
254 "zmiennych I<tzname>, I<timezone>, i I<daylight>."
255
256 #. type: Plain text
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 msgid ""
260 "The B<gmtime>() function converts the calendar time I<timep> to broken-down "
261 "time representation, expressed in Coordinated Universal Time (UTC). It may "
262 "return NULL when the year does not fit into an integer. The return value "
263 "points to a statically allocated struct which might be overwritten by "
264 "subsequent calls to any of the date and time functions. The B<gmtime_r>() "
265 "function does the same, but stores the data in a user-supplied struct."
266 msgstr ""
267 "Funkcja B<gmtime>() przekształca czas kalendarzowy I<timep> na czas "
268 "rozłożony, wyrażony w Coordinated Universal Time (UTC). Może zwrócić wartość "
269 "NULL, jeśli rok nie daje się zapisać jako liczba całkowita. Zwracany jest "
270 "wskaźnik do statycznej struktury, która to struktura może zostać nadpisana "
271 "przy kolejnym wywołaniu dowolnej funkcji daty i czasu. Funkcja B<gmtime_r>() "
272 "robi to samo, ale zapisuje dane do struktury podanej przez użytkownika."
273
274 #. type: Plain text
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 msgid ""
278 "The B<localtime>() function converts the calendar time I<timep> to broken-"
279 "down time representation, expressed relative to the user's specified "
280 "timezone. The function also sets the external variables I<tzname>, "
281 "I<timezone>, and I<daylight> as if it called B<tzset>(3). The return value "
282 "points to a statically allocated struct which might be overwritten by "
283 "subsequent calls to any of the date and time functions. The "
284 "B<localtime_r>() function does the same, but stores the data in a user-"
285 "supplied struct. It need not set I<tzname>, I<timezone>, and I<daylight>."
286 msgstr ""
287 "Funkcja B<localtime>() przekształca czas kalendarzowy I<timep> na czas "
288 "rozłożony, wyrażony względem wybranej przez użytkownika strefy czasowej. "
289 "Funkcja ustawia również zewnętrzne zmienne I<tzname>, I<timezone> i "
290 "I<daylight> tak, jakby wywoływała B<tzset>(3). Zwracany jest wskaźnik do "
291 "statycznej struktury, która może zostać nadpisana przy kolejnym wywołaniu "
292 "dowolnej funkcji daty i czasu. Funkcja B<localtime_r>() robi to samo, ale "
293 "zapisuje dane do struktury podanej przez użytkownika. Nie musi ona ustawiać "
294 "zmiennych I<tzname>, I<timezone> i I<daylight>."
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid ""
300 "The B<asctime>() function converts the broken-down time value I<tm> into a "
301 "null-terminated string with the same format as B<ctime>(). The return value "
302 "points to a statically allocated string which might be overwritten by "
303 "subsequent calls to any of the date and time functions. The B<asctime_r>() "
304 "function does the same, but stores the string in a user-supplied buffer "
305 "which should have room for at least 26 bytes."
306 msgstr ""
307 "Funkcja B<asctime>() przekształca czas rozłożony I<tm> na zakończony bajtem "
308 "null łańcuch tego samego formatu, co B<ctime>(). Zwracany jest wskaźnik do "
309 "statycznego łańcucha, który to łańcuch może zostać nadpisany przy kolejnym "
310 "wywołaniu dowolnej funkcji daty i czasu. Funkcja B<asctime_r>() robi to "
311 "samo, ale zapisuje łańcuch w podanym przez użytkownika buforze o długości co "
312 "najmniej 26 bajtów."
313
314 #. type: Plain text
315 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
316 #: opensuse-leap-16-1 opensuse-tumbleweed
317 msgid ""
318 "The B<mktime>() function converts a broken-down time structure, expressed "
319 "as local time, to calendar time representation. The function ignores the "
320 "values supplied by the caller in the I<tm_wday> and I<tm_yday> fields. The "
321 "value specified in the I<tm_isdst> field informs B<mktime>() whether or not "
322 "daylight saving time (DST) is in effect for the time supplied in the I<tm> "
323 "structure: a positive value means DST is in effect; zero means that DST is "
324 "not in effect; and a negative value means that B<mktime>() should (use "
325 "timezone information and system databases to) attempt to determine whether "
326 "DST is in effect at the specified time. See B<timegm>(3) for a UTC "
327 "equivalent of this function."
328 msgstr ""
329 "Funkcja B<mktime>() przekształca strukturę czasu rozłożonego, wyrażoną w "
330 "czasie lokalnym, na czas kalendarzowy. Funkcja ignoruje podane przez "
331 "wywołującego wartości elementów I<tm_wday> oraz I<tm_yday>. Wartość podana w "
332 "polu I<tm_isdst> informuje funkcję B<mktime>() o tym, czy dla czasu podanego "
333 "w strukturze I<tm> używany był czas letni (DST - daylight saving time), czy "
334 "też nie był używany: wartość dodatnia oznacza, że DST był używany, zero - "
335 "że nie był, a wartość ujemna nakazuje funkcji B<mktime>() podjęcie próby "
336 "sprawdzenia (w systemowej bazie danych informacji o strefach czasowych), czy "
337 "DST był używany w podanym czasie. Odpowiednikiem tej funkcji w UTC jest "
338 "B<timegm>(3)."
339
340 #. type: Plain text
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 msgid ""
344 "The B<mktime>() function modifies the fields of the I<tm> structure as "
345 "follows: I<tm_wday> and I<tm_yday> are set to values determined from the "
346 "contents of the other fields; if structure members are outside their valid "
347 "interval, they will be normalized (so that, for example, 40 October is "
348 "changed into 9 November); I<tm_isdst> is set (regardless of its initial "
349 "value) to a positive value or to 0, respectively, to indicate whether DST "
350 "is or is not in effect at the specified time. The function also sets the "
351 "external variables I<tzname>, I<timezone>, and I<daylight> as if it called "
352 "B<tzset>(3)."
353 msgstr ""
354 "Funkcja B<mktime>() modyfikuje pola struktury I<tm> jak następuje: "
355 "I<tm_wday> i I<tm_yday> są ustawiane na wartości określane na podstawie "
356 "wartości innych pól. Jeśli elementy struktury mają wartości spoza zakresu "
357 "wartości dopuszczalnych, to zostaną znormalizowane (w taki sposób, że np. 40 "
358 "października zostanie zamieniony na 9 listopada). I<tm_isdst> jest ustawiane "
359 "(niezależnie od jej początkowej wartości) na wartość dodatnią lub na 0, aby "
360 "wskazać - odpowiednio - czy w podanym czasie DST był używany, czy też nie "
361 "był. Funkcja ustawia również zewnętrzne zmienne I<tzname>, I<timezone> i "
362 "I<daylight> tak, jakby wywoływała B<tzset>(3)."
363
364 #. type: Plain text
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 msgid ""
368 "If the specified broken-down time cannot be represented as calendar time "
369 "(seconds since the Epoch), B<mktime>() returns I<(time_t)\\ -1> and does "
370 "not alter the members of the broken-down time structure."
371 msgstr ""
372 "Jeśli podany czas rozłożony nie może być reprezentowany jako czas "
373 "kalendarzowy (sekundy od początku epoki), B<mktime>() zwraca I<(time_t)\\ "
374 "-1> i nie zmienia pól w podzielonej strukturze czasu."
375
376 #. type: SH
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 #, no-wrap
380 msgid "RETURN VALUE"
381 msgstr "WARTOŚĆ ZWRACANA"
382
383 #. type: Plain text
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 msgid ""
387 "On success, B<gmtime>() and B<localtime>() return a pointer to a "
388 "I<struct\\ tm>."
389 msgstr ""
390 "B<gmtime>() oraz B<localtime>(), gdy się zakończą pomyślnie, zwracają "
391 "wskaźnik do I<struct\\ tm>."
392
393 #. type: Plain text
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 msgid ""
397 "On success, B<gmtime_r>() and B<localtime_r>() return the address of the "
398 "structure pointed to by I<result>."
399 msgstr ""
400 "B<gmtime_r>() oraz B<localtime_r>(), gdy się zakończą pomyślnie, zwracają "
401 "adres struktury wskazywanej przez I<result>."
402
403 #. type: Plain text
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 msgid "On success, B<asctime>() and B<ctime>() return a pointer to a string."
407 msgstr ""
408 "B<asctime>() oraz B<ctime>(), gdy się zakończą pomyślnie, zwracają wskaźnik "
409 "do łańcucha znaków"
410
411 #. type: Plain text
412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
414 msgid ""
415 "On success, B<asctime_r>() and B<ctime_r>() return a pointer to the string "
416 "pointed to by I<buf>."
417 msgstr ""
418 "B<asctime_r>() oraz B<ctime_r>(), gdy się zakończą pomyślnie, zwracają "
419 "wskaźnik do łańcucha znaków, na który wskazuje argument I<buf>."
420
421 #. type: Plain text
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 msgid ""
425 "On success, B<mktime>() returns the calendar time (seconds since the "
426 "Epoch), expressed as a value of type I<time_t>."
427 msgstr ""
428 "B<mktime>, gdy zakończy się pomyślnie, zwraca czas kalendarzowy (w sekundach "
429 "od początku epoki [tj. 1970-01-01 00:00:00 +0000 -przyp. tłum.]), wyrażony "
430 "jako wartość typu I<time_t>"
431
432 #. type: Plain text
433 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
434 #: opensuse-leap-16-1 opensuse-tumbleweed
435 msgid ""
436 "On error, B<mktime>() returns the value I<(time_t)\\ -1>, and leaves the "
437 "I<tm-E<gt>tm_wday> member unmodified. The remaining functions return NULL "
438 "on error. On error, I<errno> is set to indicate the error."
439 msgstr ""
440 "W razie błędu, B<mktime>() zwraca wartość I<(time_t)\\ -1> i pozostawia "
441 "składową I<tm-E<gt>tm_wday> bez modyfikacji. Pozostałe funkcje w przypadku "
442 "błędu zwracają NULL. Ustawiane jest też I<errno>, wskazując błąd."
443
444 #. type: SH
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 #, no-wrap
448 msgid "ERRORS"
449 msgstr "BŁĘDY"
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<EOVERFLOW>"
456 msgstr "B<EOVERFLOW>"
457
458 #. type: Plain text
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 msgid "The result cannot be represented."
462 msgstr "Wynik jest niereprezentowalny."
463
464 #. type: SH
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 #, no-wrap
468 msgid "ATTRIBUTES"
469 msgstr "ATRYBUTY"
470
471 #. type: Plain text
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 msgid ""
475 "For an explanation of the terms used in this section, see B<attributes>(7)."
476 msgstr ""
477 "Informacje o pojęciach używanych w tym rozdziale można znaleźć w podręczniku "
478 "B<attributes>(7)."
479
480 #. type: tbl table
481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
483 #, no-wrap
484 msgid "Interface"
485 msgstr "Interfejs"
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 "Attribute"
492 msgstr "Atrybut"
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 "Value"
499 msgstr "Wartość"
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 ".na\n"
506 msgstr ".na\n"
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 ".nh\n"
513 msgstr ".nh\n"
514
515 #. type: TP
516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
518 #, no-wrap
519 msgid "B<asctime>()"
520 msgstr "B<asctime>()"
521
522 #. #-#-#-#-# archlinux: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
523 #. type: SS
524 #. #-#-#-#-# debian-trixie: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
525 #. type: tbl table
526 #. #-#-#-#-# debian-unstable: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
527 #. type: SS
528 #. #-#-#-#-# fedora-44: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
529 #. type: SS
530 #. #-#-#-#-# fedora-rawhide: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
531 #. type: SS
532 #. #-#-#-#-# mageia-cauldron: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
533 #. type: SS
534 #. #-#-#-#-# opensuse-leap-16-1: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
535 #. type: SS
536 #. #-#-#-#-# opensuse-tumbleweed: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
537 #. type: SS
538 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
539 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
540 #, no-wrap
541 msgid "Thread safety"
542 msgstr "Bezpieczeństwo wątkowe"
543
544 #. type: tbl table
545 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
546 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
547 #, no-wrap
548 msgid "MT-Unsafe race:asctime locale"
549 msgstr "MT-niebezpieczne race:asctime locale"
550
551 #. type: TP
552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
554 #, no-wrap
555 msgid "B<asctime_r>()"
556 msgstr "B<asctime_r>()"
557
558 #. type: tbl table
559 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
560 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
561 #, no-wrap
562 msgid "MT-Safe locale"
563 msgstr "MT-bezpieczne locale"
564
565 #. type: TQ
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 #, no-wrap
569 msgid "B<ctime>()"
570 msgstr "B<ctime>()"
571
572 #. type: tbl table
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 #, no-wrap
576 msgid ""
577 "MT-Unsafe race:tmbuf\n"
578 "race:asctime env locale"
579 msgstr ""
580 "MT-niebezpieczne race:tmbuf\n"
581 "race:asctime env locale"
582
583 #. type: tbl table
584 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
585 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
586 #, no-wrap
587 msgid ""
588 "B<ctime_r>(),\n"
589 "B<gmtime_r>(),\n"
590 "B<localtime_r>(),\n"
591 "B<mktime>()"
592 msgstr ""
593 "B<ctime_r>(),\n"
594 "B<gmtime_r>(),\n"
595 "B<localtime_r>(),\n"
596 "B<mktime>()"
597
598 #. type: tbl table
599 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
600 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
601 #, no-wrap
602 msgid "MT-Safe env locale"
603 msgstr "MT-bezpieczne env locale"
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 ""
610 "B<gmtime>(),\n"
611 "B<localtime>()"
612 msgstr ""
613 "B<gmtime>(),\n"
614 "B<localtime>()"
615
616 #. type: tbl table
617 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
618 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
619 #, no-wrap
620 msgid "MT-Unsafe race:tmbuf env locale"
621 msgstr "MT-niebezpieczne race:tmbuf env locale"
622
623 #. type: SH
624 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
625 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
626 #, no-wrap
627 msgid "VERSIONS"
628 msgstr "WERSJE"
629
630 #. type: Plain text
631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
633 msgid ""
634 "POSIX doesn't specify the parameters of B<ctime_r>() to be I<restrict>; "
635 "that is specific to glibc."
636 msgstr ""
637 "POSIX nie określa parametrów B<ctime_r>() jako I<restrict>; jest to typowe "
638 "dla glibc."
639
640 #. type: Plain text
641 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
642 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
643 msgid ""
644 "In many implementations, including glibc, a 0 in I<tm_mday> is interpreted "
645 "as meaning the last day of the preceding month."
646 msgstr ""
647 "Wiele implementacji, włączając glibc, interpretuje 0 w I<tm_mday> jako "
648 "ostatni dzień poprzedniego miesiąca."
649
650 #. See http://thread.gmane.org/gmane.comp.time.tz/2034/
651 #. type: Plain text
652 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
653 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
654 msgid ""
655 "According to POSIX.1, B<localtime>() is required to behave as though "
656 "B<tzset>(3) was called, while B<localtime_r>() does not have this "
657 "requirement. For portable code, B<tzset>(3) should be called before "
658 "B<localtime_r>()."
659 msgstr ""
660 "Według POSIX.1, B<localtime>() musi się zachowywać tak, jakby B<tzset>(3) "
661 "było wywołane, w przypadku zaś B<localtime_r>() nie ma takiego wymagania. W "
662 "przenośnym kodzie B<tzset>(3) powinno być wywołanie przed B<localtime_r>()."
663
664 #. type: SH
665 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
666 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
667 #, no-wrap
668 msgid "STANDARDS"
669 msgstr "STANDARDY"
670
671 #. type: TP
672 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
673 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
674 #, no-wrap
675 msgid "B<gmtime>()"
676 msgstr "B<gmtime>()"
677
678 #. type: TQ
679 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
680 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
681 #, no-wrap
682 msgid "B<localtime>()"
683 msgstr "B<localtime>()"
684
685 #. type: TQ
686 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
687 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
688 #, no-wrap
689 msgid "B<mktime>()"
690 msgstr "B<mktime>()"
691
692 #. type: Plain text
693 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
694 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
695 msgid "C23, POSIX.1-2024."
696 msgstr "C23, POSIX.1-2024."
697
698 #. type: TP
699 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
700 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
701 #, no-wrap
702 msgid "B<gmtime_r>()"
703 msgstr "B<gmtime_r>()"
704
705 #. type: TQ
706 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
707 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
708 #, no-wrap
709 msgid "B<localtime_r>()"
710 msgstr "B<localtime_r>()"
711
712 #. type: Plain text
713 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
714 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
715 msgid "POSIX.1-2024."
716 msgstr "POSIX.1-2024."
717
718 #. type: TQ
719 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
720 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
721 #, no-wrap
722 msgid "B<ctime_r>()"
723 msgstr "B<ctime_r>()"
724
725 #. type: Plain text
726 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
727 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
728 msgid "None."
729 msgstr "Brak."
730
731 #. type: SH
732 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
733 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
734 #, no-wrap
735 msgid "HISTORY"
736 msgstr "HISTORIA"
737
738 #. type: Plain text
739 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
740 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
741 msgid "C89, POSIX.1-1988."
742 msgstr "C89, POSIX.1-1988."
743
744 #. type: Plain text
745 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
746 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
747 msgid ""
748 "C89, POSIX.1-1988. Marked obsolescent in C23 and in POSIX.1-2008 "
749 "(recommending B<strftime>(3))."
750 msgstr ""
751 "C89, POSIX.1-1988. Oznaczone jako przestarzałe w C23 i w POSIX.1-2008 (z "
752 "zaleceniem stosowania B<strftime>(3))."
753
754 #. type: Plain text
755 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
756 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
757 msgid "POSIX.1-1996."
758 msgstr "POSIX.1-1996."
759
760 #. type: Plain text
761 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
762 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
763 msgid ""
764 "POSIX.1-1996. Marked obsolescent in POSIX.1-2008. Removed in POSIX.1-2024 "
765 "(recommending B<strftime>(3))."
766 msgstr ""
767 "POSIX.1-1996. Oznaczone jako przestarzałe w POSIX.1-2008. Usunięte w "
768 "POSIX.1-2024 (zalecając B<strftime>(3))."
769
770 #. type: SH
771 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
772 #: opensuse-leap-16-1 opensuse-tumbleweed
773 #, no-wrap
774 msgid "CAVEATS"
775 msgstr "ZASTRZEŻENIA"
776
777 #. type: Plain text
778 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
779 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
780 msgid ""
781 "The four functions B<asctime>(), B<ctime>(), B<gmtime>(), and "
782 "B<localtime>() return a pointer to static data and hence are not thread-"
783 "safe. The thread-safe versions, B<asctime_r>(), B<ctime_r>(), "
784 "B<gmtime_r>(), and B<localtime_r>(), are specified by SUSv2."
785 msgstr ""
786 "Następujące cztery funkcje B<acstime>(), B<ctime>(), B<gmtime>() i "
787 "B<localtime>() zwracają wskaźnik do statycznych danych i w związku z tym nie "
788 "są przystosowane do wielowątkowości. Wielowątkowe wersje B<acstime_r>(), "
789 "B<ctime_r>(), B<gmtime_r>() i B<localtime_r>() są wymienione w SUSv2."
790
791 #. type: Plain text
792 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
793 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
794 msgid ""
795 "POSIX.1 says: \"The B<asctime>(), B<ctime>(), B<gmtime>(), and "
796 "B<localtime>() functions shall return values in one of two static objects: "
797 "a broken-down time structure and an array of type I<char>. Execution of any "
798 "of the functions that return a pointer to one of these object types may "
799 "overwrite the information in any object of the same type pointed to by the "
800 "value returned from any previous call to any of them.\" This can occur in "
801 "the glibc implementation."
802 msgstr ""
803 "POSIX.1 mówi: \"Funkcje B<asctime>(), B<ctime>(), B<gmtime>() oraz "
804 "B<localtime>() powinny zwrócić wartości w jednym z dwóch statycznych "
805 "obiektów: podzielonej strukturze czasu i tablicy znaków typu I<char>. "
806 "Wywołanie którejkolwiek z tych funkcji zwracającej wskaźnik do jednego z "
807 "tych obiektów, może nadpisać informacje w którymkolwiek z obiektów tego "
808 "samego typu, na który wskazuje wartość zwrócona przez dowolne poprzednie "
809 "wywołanie którejkolwiek z funkcji\". Może się to zdarzyć w implementacji "
810 "zastosowanej w bibliotece glibc."
811
812 #. type: SS
813 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
814 #: opensuse-leap-16-1 opensuse-tumbleweed
815 #, no-wrap
816 msgid "mktime()"
817 msgstr "mktime()"
818
819 #. type: Plain text
820 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
821 #: opensuse-leap-16-1 opensuse-tumbleweed
822 msgid ""
823 "I<(time_t) -1> can represent a valid time (one second before the Epoch). To "
824 "determine whether B<mktime>() failed, one must use the I<tm-E<gt>tm_wday> "
825 "field. See the example program in EXAMPLES."
826 msgstr ""
827 "I<(time_t) -1> może reprezentować prawidłowy czas (jedna sekunda przed "
828 "Epoką). Aby sprawdzić, czy B<mktime>() zawiodło, konieczne jest użycie pola "
829 "I<tm-E<gt>tm_wday>. Zob. przykładowy program w PRZYKŁADACH."
830
831 #. type: Plain text
832 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
833 #: opensuse-leap-16-1 opensuse-tumbleweed
834 msgid ""
835 "The handling of a non-negative I<tm_isdst> in B<mktime>() is poorly "
836 "specified, and passing a value that is incorrect for the time specified "
837 "yields unspecified results. Since B<mktime>() is one of the few functions "
838 "that knows when DST is in effect, providing a correct value may be "
839 "difficult. One workaround for this is to call B<mktime>() twice, once with "
840 "I<tm_isdst> set to zero, and once with I<tm_isdst> set to a positive value, "
841 "and discarding the results from the call that changes it. If neither call "
842 "changes I<tm_isdst> then the time specified probably happens during a fall-"
843 "back period where DST begins or ends, and both results are valid but "
844 "represent two different times. If both calls change it, that could indicate "
845 "a fall-forward transition, or some other reason why the time specified does "
846 "not exist."
847 msgstr ""
848 "Obsługa nieujemnego I<tm_isdst> w B<mktime>() jest niedookreślona, a "
849 "przekazanie wartości, która jest nieprawidłowa dla podanego czasu, daje "
850 "nieokreślone skutki. Ponieważ B<mktime>() jest jedną z niewielu funkcji "
851 "wiedzących o tym, czy czas letni (DST) jest w mocy, przekazanie prawidłowej "
852 "wartości może być trudne. Jednym z obejść tego problemu jest wywołanie "
853 "B<mktime>() dwukrotnie, raz z I<tm_isdst> ustawionym na zero i raz z "
854 "I<tm_isdst> ustawionym na wartość dodatnią, a następnie odrzucenie wyników z "
855 "wywołania, które go zmieni. Jeśli żadne z wywołań nie zmieni I<tm_isdst>, to "
856 "podany czas prawdopodobnie wypada w okresie przejściowym, gdy następuje "
857 "początek lub koniec czasu letniego, zatem oba wyniki są prawidłowe, ale "
858 "oznaczają dwa różne punkty w czasie. Jeśli oba wywołania go zmieniają, może "
859 "to być również okres przejściowy czasu letniego, albo jakiś inny powód, z "
860 "którego podany czas nie istnieje."
861
862 #. type: Plain text
863 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
864 #: opensuse-leap-16-1 opensuse-tumbleweed
865 msgid ""
866 "The specification of time zones and daylight saving time are up to regional "
867 "governments, change often, and may include discontinuities beyond "
868 "I<mktime>'s ability to document a result. For example, a change in the "
869 "timezone definition may cause a clock time to be repeated or skipped without "
870 "a corresponding DST change."
871 msgstr ""
872 "Określenie stref czasowych i czasu letniego zależy od lokalnych rządów, "
873 "często się zmienia i może zawierać nieciągłości poza możliwością "
874 "udokumentowania przez I<mktime>. Na przykład zmiana w definicji strefy "
875 "czasowej może spowodować powtórzenie lub pominięcie czasu zegara, bez "
876 "odpowiadającej zmiany czasu letniego."
877
878 #. type: SH
879 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
880 #: opensuse-leap-16-1 opensuse-tumbleweed
881 #, no-wrap
882 msgid "EXAMPLES"
883 msgstr "PRZYKŁADY"
884
885 #. type: Plain text
886 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
887 #: opensuse-leap-16-1 opensuse-tumbleweed
888 msgid ""
889 "The program below defines a wrapper that allows detecting invalid and "
890 "ambiguous times, with B<EINVAL> and B<ENOTUNIQ>, respectively."
891 msgstr ""
892 "Poniższy program definiuje opakowanie pozwalające na wykrycie czasów "
893 "nieprawidłowych i niejednoznacznych, z błędami, odpowiednio, B<EINVAL> i "
894 "B<ENOTUNIQ>."
895
896 #. type: Plain text
897 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
898 #: opensuse-leap-16-1 opensuse-tumbleweed
899 msgid "The following shell session shows sample runs of the program:"
900 msgstr "Poniższa sesja powłoki pokazuje przykładowy przebieg programu:"
901
902 #. type: Plain text
903 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
904 #: opensuse-leap-16-1 opensuse-tumbleweed
905 #, no-wrap
906 msgid ""
907 "$\\ B<TZ=UTC ./a.out 1969 12 31 23 59 59 0>;\n"
908 "-1\n"
909 "$\n"
910 "$\\ B<export TZ=Europe/Madrid>;\n"
911 "$\n"
912 "$\\ B<./a.out 2147483647 2147483647 00 00 00 00 -1>;\n"
913 "a.out: mktime: Value too large for defined data type\n"
914 "$\n"
915 "$\\ B<./a.out 2024 08 23 00 17 53 -1>;\n"
916 "1724365073\n"
917 "$\\ B<./a.out 2024 08 23 00 17 53 0>;\n"
918 "a.out: my_mktime: Invalid argument\n"
919 "1724368673\n"
920 "$\\ B<./a.out 2024 08 23 00 17 53 1>;\n"
921 "1724365073\n"
922 "$\n"
923 "$\\ B<./a.out 2024 02 23 00 17 53 -1>;\n"
924 "1708643873\n"
925 "$\\ B<./a.out 2024 02 23 00 17 53 0>;\n"
926 "1708643873\n"
927 "$\\ B<./a.out 2024 02 23 00 17 53 1>;\n"
928 "a.out: my_mktime: Invalid argument\n"
929 "1708640273\n"
930 "$\n"
931 "$\\ B<./a.out 2023 03 26 02 17 53 -1>;\n"
932 "a.out: my_mktime: Invalid argument\n"
933 "1679793473\n"
934 "$\n"
935 "$\\ B<./a.out 2023 10 29 02 17 53 -1>;\n"
936 "a.out: my_mktime: Name not unique on network\n"
937 "1698542273\n"
938 "$\\ B<./a.out 2023 10 29 02 17 53 0>;\n"
939 "1698542273\n"
940 "$\\ B<./a.out 2023 10 29 02 17 53 1>;\n"
941 "1698538673\n"
942 "$\n"
943 "$\\ B<./a.out 2023 02 29 12 00 00 -1>;\n"
944 "a.out: my_mktime: Invalid argument\n"
945 "1677668400\n"
946 msgstr ""
947 "$\\ B<TZ=UTC ./a.out 1969 12 31 23 59 59 0>;\n"
948 "-1\n"
949 "$\n"
950 "$\\ B<export TZ=Europe/Madrid>;\n"
951 "$\n"
952 "$\\ B<./a.out 2147483647 2147483647 00 00 00 00 -1>;\n"
953 "a.out: mktime: Value too large for defined data type\n"
954 "$\n"
955 "$\\ B<./a.out 2024 08 23 00 17 53 -1>;\n"
956 "1724365073\n"
957 "$\\ B<./a.out 2024 08 23 00 17 53 0>;\n"
958 "a.out: my_mktime: Invalid argument\n"
959 "1724368673\n"
960 "$\\ B<./a.out 2024 08 23 00 17 53 1>;\n"
961 "1724365073\n"
962 "$\n"
963 "$\\ B<./a.out 2024 02 23 00 17 53 -1>;\n"
964 "1708643873\n"
965 "$\\ B<./a.out 2024 02 23 00 17 53 0>;\n"
966 "1708643873\n"
967 "$\\ B<./a.out 2024 02 23 00 17 53 1>;\n"
968 "a.out: my_mktime: Invalid argument\n"
969 "1708640273\n"
970 "$\n"
971 "$\\ B<./a.out 2023 03 26 02 17 53 -1>;\n"
972 "a.out: my_mktime: Invalid argument\n"
973 "1679793473\n"
974 "$\n"
975 "$\\ B<./a.out 2023 10 29 02 17 53 -1>;\n"
976 "a.out: my_mktime: Name not unique on network\n"
977 "1698542273\n"
978 "$\\ B<./a.out 2023 10 29 02 17 53 0>;\n"
979 "1698542273\n"
980 "$\\ B<./a.out 2023 10 29 02 17 53 1>;\n"
981 "1698538673\n"
982 "$\n"
983 "$\\ B<./a.out 2023 02 29 12 00 00 -1>;\n"
984 "a.out: my_mktime: Invalid argument\n"
985 "1677668400\n"
986
987 #. type: SS
988 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
989 #: opensuse-leap-16-1 opensuse-tumbleweed
990 #, no-wrap
991 msgid "Program source: mktime.c"
992 msgstr "Kod źródłowy programu: mktime.c"
993
994 #. type: Plain text
995 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
996 #: opensuse-tumbleweed
997 #, no-wrap
998 msgid ""
999 "#include E<lt>err.hE<gt>\n"
1000 "#include E<lt>errno.hE<gt>\n"
1001 "#include E<lt>stdint.hE<gt>\n"
1002 "#include E<lt>stdio.hE<gt>\n"
1003 "#include E<lt>stdlib.hE<gt>\n"
1004 "#include E<lt>string.hE<gt>\n"
1005 "#include E<lt>time.hE<gt>\n"
1006 "\\&\n"
1007 "#define is_signed(T) ((T) -1 E<lt> 1)\n"
1008 "\\&\n"
1009 "static time_t my_mktime(struct tm *tp);\n"
1010 "\\&\n"
1011 "int\n"
1012 "main(int argc, char *argv[])\n"
1013 "{\n"
1014 " char **p;\n"
1015 " time_t t;\n"
1016 " struct tm tm;\n"
1017 "\\&\n"
1018 " if (argc != 8) {\n"
1019 " fprintf(stderr, \"Usage: %s yyyy mm dd HH MM SS isdst\\[rs]n\", argv[0]);\n"
1020 " exit(EXIT_FAILURE);\n"
1021 " }\n"
1022 "\\&\n"
1023 " p = &argv[1];\n"
1024 " tm.tm_year = atoi(*p++) - 1900;\n"
1025 " tm.tm_mon = atoi(*p++) - 1;\n"
1026 " tm.tm_mday = atoi(*p++);\n"
1027 " tm.tm_hour = atoi(*p++);\n"
1028 " tm.tm_min = atoi(*p++);\n"
1029 " tm.tm_sec = atoi(*p++);\n"
1030 " tm.tm_isdst = atoi(*p++);\n"
1031 "\\&\n"
1032 " errno = 0;\n"
1033 " tm.tm_wday = -1;\n"
1034 " t = my_mktime(&tm);\n"
1035 " if (tm.tm_wday == -1)\n"
1036 " err(EXIT_FAILURE, \"mktime\");\n"
1037 " if (errno == EINVAL || errno == ENOTUNIQ)\n"
1038 " warn(\"my_mktime\");\n"
1039 "\\&\n"
1040 " if (is_signed(time_t))\n"
1041 " printf(\"%jd\\[rs]n\", (intmax_t) t);\n"
1042 " else\n"
1043 " printf(\"%ju\\[rs]n\", (uintmax_t) t);\n"
1044 "\\&\n"
1045 " exit(EXIT_SUCCESS);\n"
1046 "}\n"
1047 "\\&\n"
1048 "static time_t\n"
1049 "my_mktime(struct tm *tp)\n"
1050 "{\n"
1051 " int e, isdst;\n"
1052 " time_t t;\n"
1053 " struct tm tm;\n"
1054 " unsigned char wday[sizeof(tp-E<gt>tm_wday)];\n"
1055 "\\&\n"
1056 " e = errno;\n"
1057 "\\&\n"
1058 " tm = *tp;\n"
1059 " isdst = tp-E<gt>tm_isdst;\n"
1060 "\\&\n"
1061 " memcpy(wday, &tp-E<gt>tm_wday, sizeof(wday));\n"
1062 " tp-E<gt>tm_wday = -1;\n"
1063 " t = mktime(tp);\n"
1064 " if (tp-E<gt>tm_wday == -1) {\n"
1065 " memcpy(&tp-E<gt>tm_wday, wday, sizeof(wday));\n"
1066 " return -1;\n"
1067 " }\n"
1068 "\\&\n"
1069 " if (isdst == -1)\n"
1070 " tm.tm_isdst = tp-E<gt>tm_isdst;\n"
1071 "\\&\n"
1072 " if ( tm.tm_sec != tp-E<gt>tm_sec\n"
1073 " || tm.tm_min != tp-E<gt>tm_min\n"
1074 " || tm.tm_hour != tp-E<gt>tm_hour\n"
1075 " || tm.tm_mday != tp-E<gt>tm_mday\n"
1076 " || tm.tm_mon != tp-E<gt>tm_mon\n"
1077 " || tm.tm_year != tp-E<gt>tm_year\n"
1078 " || tm.tm_isdst != tp-E<gt>tm_isdst)\n"
1079 " {\n"
1080 " errno = EINVAL;\n"
1081 " return t;\n"
1082 " }\n"
1083 "\\&\n"
1084 " if (isdst != -1)\n"
1085 " goto out;\n"
1086 "\\&\n"
1087 " tm = *tp;\n"
1088 " tm.tm_isdst = !tm.tm_isdst;\n"
1089 "\\&\n"
1090 " tm.tm_wday = -1;\n"
1091 " mktime(&tm);\n"
1092 " if (tm.tm_wday == -1)\n"
1093 " goto out;\n"
1094 "\\&\n"
1095 " if (tm.tm_isdst != tp-E<gt>tm_isdst) {\n"
1096 " errno = ENOTUNIQ;\n"
1097 " return t;\n"
1098 " }\n"
1099 "out:\n"
1100 " errno = e;\n"
1101 " return t;\n"
1102 "}\n"
1103 msgstr ""
1104 "#include E<lt>err.hE<gt>\n"
1105 "#include E<lt>errno.hE<gt>\n"
1106 "#include E<lt>stdint.hE<gt>\n"
1107 "#include E<lt>stdio.hE<gt>\n"
1108 "#include E<lt>stdlib.hE<gt>\n"
1109 "#include E<lt>string.hE<gt>\n"
1110 "#include E<lt>time.hE<gt>\n"
1111 "\\&\n"
1112 "#define is_signed(T) ((T) -1 E<lt> 1)\n"
1113 "\\&\n"
1114 "static time_t my_mktime(struct tm *tp);\n"
1115 "\\&\n"
1116 "int\n"
1117 "main(int argc, char *argv[])\n"
1118 "{\n"
1119 " char **p;\n"
1120 " time_t t;\n"
1121 " struct tm tm;\n"
1122 "\\&\n"
1123 " if (argc != 8) {\n"
1124 " fprintf(stderr, \"Użycie: %s rrrr mm dd GG MM SS czyletni\\[rs]n\", argv[0]);\n"
1125 " exit(EXIT_FAILURE);\n"
1126 " }\n"
1127 "\\&\n"
1128 " p = &argv[1];\n"
1129 " tm.tm_year = atoi(*p++) - 1900;\n"
1130 " tm.tm_mon = atoi(*p++) - 1;\n"
1131 " tm.tm_mday = atoi(*p++);\n"
1132 " tm.tm_hour = atoi(*p++);\n"
1133 " tm.tm_min = atoi(*p++);\n"
1134 " tm.tm_sec = atoi(*p++);\n"
1135 " tm.tm_isdst = atoi(*p++);\n"
1136 "\\&\n"
1137 " errno = 0;\n"
1138 " tm.tm_wday = -1;\n"
1139 " t = my_mktime(&tm);\n"
1140 " if (tm.tm_wday == -1)\n"
1141 " err(EXIT_FAILURE, \"mktime\");\n"
1142 " if (errno == EINVAL || errno == ENOTUNIQ)\n"
1143 " warn(\"my_mktime\");\n"
1144 "\\&\n"
1145 " if (is_signed(time_t))\n"
1146 " printf(\"%jd\\[rs]n\", (intmax_t) t);\n"
1147 " else\n"
1148 " printf(\"%ju\\[rs]n\", (uintmax_t) t);\n"
1149 "\\&\n"
1150 " exit(EXIT_SUCCESS);\n"
1151 "}\n"
1152 "\\&\n"
1153 "static time_t\n"
1154 "my_mktime(struct tm *tp)\n"
1155 "{\n"
1156 " int e, isdst;\n"
1157 " time_t t;\n"
1158 " struct tm tm;\n"
1159 " unsigned char wday[sizeof(tp-E<gt>tm_wday)];\n"
1160 "\\&\n"
1161 " e = errno;\n"
1162 "\\&\n"
1163 " tm = *tp;\n"
1164 " isdst = tp-E<gt>tm_isdst;\n"
1165 "\\&\n"
1166 " memcpy(wday, &tp-E<gt>tm_wday, sizeof(wday));\n"
1167 " tp-E<gt>tm_wday = -1;\n"
1168 " t = mktime(tp);\n"
1169 " if (tp-E<gt>tm_wday == -1) {\n"
1170 " memcpy(&tp-E<gt>tm_wday, wday, sizeof(wday));\n"
1171 " return -1;\n"
1172 " }\n"
1173 "\\&\n"
1174 " if (isdst == -1)\n"
1175 " tm.tm_isdst = tp-E<gt>tm_isdst;\n"
1176 "\\&\n"
1177 " if ( tm.tm_sec != tp-E<gt>tm_sec\n"
1178 " || tm.tm_min != tp-E<gt>tm_min\n"
1179 " || tm.tm_hour != tp-E<gt>tm_hour\n"
1180 " || tm.tm_mday != tp-E<gt>tm_mday\n"
1181 " || tm.tm_mon != tp-E<gt>tm_mon\n"
1182 " || tm.tm_year != tp-E<gt>tm_year\n"
1183 " || tm.tm_isdst != tp-E<gt>tm_isdst)\n"
1184 " {\n"
1185 " errno = EINVAL;\n"
1186 " return t;\n"
1187 " }\n"
1188 "\\&\n"
1189 " if (isdst != -1)\n"
1190 " goto out;\n"
1191 "\\&\n"
1192 " tm = *tp;\n"
1193 " tm.tm_isdst = !tm.tm_isdst;\n"
1194 "\\&\n"
1195 " tm.tm_wday = -1;\n"
1196 " mktime(&tm);\n"
1197 " if (tm.tm_wday == -1)\n"
1198 " goto out;\n"
1199 "\\&\n"
1200 " if (tm.tm_isdst != tp-E<gt>tm_isdst) {\n"
1201 " errno = ENOTUNIQ;\n"
1202 " return t;\n"
1203 " }\n"
1204 "out:\n"
1205 " errno = e;\n"
1206 " return t;\n"
1207 "}\n"
1208
1209 #. #-#-#-#-# archlinux: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1210 #. SRC END
1211 #. type: SH
1212 #. #-#-#-#-# debian-trixie: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1213 #. type: SH
1214 #. #-#-#-#-# debian-unstable: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1215 #. SRC END
1216 #. type: SH
1217 #. #-#-#-#-# fedora-44: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1218 #. SRC END
1219 #. type: SH
1220 #. #-#-#-#-# fedora-rawhide: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1221 #. SRC END
1222 #. type: SH
1223 #. #-#-#-#-# mageia-cauldron: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1224 #. SRC END
1225 #. type: SH
1226 #. #-#-#-#-# opensuse-leap-16-1: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1227 #. SRC END
1228 #. type: SH
1229 #. #-#-#-#-# opensuse-tumbleweed: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1230 #. SRC END
1231 #. type: SH
1232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1234 #, no-wrap
1235 msgid "SEE ALSO"
1236 msgstr "ZOBACZ TAKŻE"
1237
1238 #. type: Plain text
1239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1241 msgid ""
1242 "B<date>(1), B<gettimeofday>(2), B<time>(2), B<utime>(2), B<clock>(3), "
1243 "B<difftime>(3), B<strftime>(3), B<strptime>(3), B<timegm>(3), B<tzset>(3), "
1244 "B<time>(7)"
1245 msgstr ""
1246 "B<date>(1), B<gettimeofday>(2), B<time>(2), B<utime>(2), B<clock>(3), "
1247 "B<difftime>(3), B<strftime>(3), B<strptime>(3), B<timegm>(3), B<tzset>(3), "
1248 "B<time>(7)"
1249
1250 #. type: TH
1251 #: debian-trixie
1252 #, no-wrap
1253 msgid "2024-06-15"
1254 msgstr "15 czerwca 2024 r."
1255
1256 #. type: TH
1257 #: debian-trixie
1258 #, no-wrap
1259 msgid "Linux man-pages 6.9.1"
1260 msgstr "Linux man-pages 6.9.1"
1261
1262 #. type: Plain text
1263 #: debian-trixie
1264 msgid "Standard C library (I<libc>, I<-lc>)"
1265 msgstr "Standardowa biblioteka C (I<libc>, I<-lc>)"
1266
1267 #. type: Plain text
1268 #: debian-trixie fedora-44 fedora-rawhide
1269 msgid ""
1270 "The call B<ctime(>I<t>B<)> is equivalent to B<asctime(localtime(>I<t>B<))>. "
1271 "It converts the calendar time I<t> into a null-terminated string of the form"
1272 msgstr ""
1273 "Wywołanie B<ctime(>I<t>B<)> jest równoważne B<asctime(localtime(>I<t>B<))>. "
1274 "Przekształca czas kalendarzowy I<t> na zakończony znakiem null łańcuch o "
1275 "postaci"
1276
1277 #. type: Plain text
1278 #: debian-trixie
1279 msgid ""
1280 "The B<mktime>() function converts a broken-down time structure, expressed "
1281 "as local time, to calendar time representation. The function ignores the "
1282 "values supplied by the caller in the I<tm_wday> and I<tm_yday> fields. The "
1283 "value specified in the I<tm_isdst> field informs B<mktime>() whether or not "
1284 "daylight saving time (DST) is in effect for the time supplied in the I<tm> "
1285 "structure: a positive value means DST is in effect; zero means that DST is "
1286 "not in effect; and a negative value means that B<mktime>() should (use "
1287 "timezone information and system databases to) attempt to determine whether "
1288 "DST is in effect at the specified time."
1289 msgstr ""
1290 "Funkcja B<mktime>() przekształca strukturę czasu rozłożonego, wyrażoną w "
1291 "czasie lokalnym, na czas kalendarzowy. Funkcja ignoruje podane przez "
1292 "wywołującego wartości elementów I<tm_wday> oraz I<tm_yday>. Wartość podana w "
1293 "polu I<tm_isdst> informuje funkcję B<mktime>() o tym, czy dla czasu podanego "
1294 "w strukturze I<tm> używany był czas letni (DST - daylight saving time), czy "
1295 "też nie był używany: wartość dodatnia oznacza, że DST był używany, zero - "
1296 "że nie był, a wartość ujemna nakazuje funkcji B<mktime>() podjęcie próby "
1297 "sprawdzenia (w systemowej bazie danych informacji o strefach czasowych), czy "
1298 "DST był używany w podanym czasie."
1299
1300 #. type: Plain text
1301 #: debian-trixie
1302 msgid ""
1303 "On error, B<mktime>() returns the value I<(time_t)\\ -1>. The remaining "
1304 "functions return NULL on error. On error, I<errno> is set to indicate the "
1305 "error."
1306 msgstr ""
1307 "W razie błędu B<mktime>() zwraca wartość I<(time_t)\\ -1>. Pozostałe funkcje "
1308 "w przypadku błędu zwracają NULL. Ustawiane jest też I<errno>, wskazując błąd."
1309
1310 #. type: SH
1311 #: debian-trixie
1312 #, no-wrap
1313 msgid "NOTES"
1314 msgstr "UWAGI"
1315
1316 #. type: TH
1317 #: fedora-44 fedora-rawhide
1318 #, no-wrap
1319 msgid "2025-02-18"
1320 msgstr "18 lutego 2025 r."
1321
1322 #. type: TH
1323 #: fedora-44 fedora-rawhide
1324 #, no-wrap
1325 msgid "Linux man-pages 6.13"
1326 msgstr "Linux man-pages 6.13"
1327
1328 #. type: Plain text
1329 #: fedora-44 fedora-rawhide
1330 #, no-wrap
1331 msgid ""
1332 "#include E<lt>err.hE<gt>\n"
1333 "#include E<lt>errno.hE<gt>\n"
1334 "#include E<lt>stdint.hE<gt>\n"
1335 "#include E<lt>stdio.hE<gt>\n"
1336 "#include E<lt>stdlib.hE<gt>\n"
1337 "#include E<lt>string.hE<gt>\n"
1338 "#include E<lt>time.hE<gt>\n"
1339 "\\&\n"
1340 "#define is_signed(T) ((T) -1 E<lt> 1)\n"
1341 "\\&\n"
1342 "time_t my_mktime(struct tm *tp);\n"
1343 "\\&\n"
1344 "int\n"
1345 "main(int argc, char *argv[])\n"
1346 "{\n"
1347 " char **p;\n"
1348 " time_t t;\n"
1349 " struct tm tm;\n"
1350 "\\&\n"
1351 " if (argc != 8) {\n"
1352 " fprintf(stderr, \"Usage: %s yyyy mm dd HH MM SS isdst\\[rs]n\", argv[0]);\n"
1353 " exit(EXIT_FAILURE);\n"
1354 " }\n"
1355 "\\&\n"
1356 " p = &argv[1];\n"
1357 " tm.tm_year = atoi(*p++) - 1900;\n"
1358 " tm.tm_mon = atoi(*p++) - 1;\n"
1359 " tm.tm_mday = atoi(*p++);\n"
1360 " tm.tm_hour = atoi(*p++);\n"
1361 " tm.tm_min = atoi(*p++);\n"
1362 " tm.tm_sec = atoi(*p++);\n"
1363 " tm.tm_isdst = atoi(*p++);\n"
1364 "\\&\n"
1365 " errno = 0;\n"
1366 " tm.tm_wday = -1;\n"
1367 " t = my_mktime(&tm);\n"
1368 " if (tm.tm_wday == -1)\n"
1369 " err(EXIT_FAILURE, \"mktime\");\n"
1370 " if (errno == EINVAL || errno == ENOTUNIQ)\n"
1371 " warn(\"my_mktime\");\n"
1372 "\\&\n"
1373 " if (is_signed(time_t))\n"
1374 " printf(\"%jd\\[rs]n\", (intmax_t) t);\n"
1375 " else\n"
1376 " printf(\"%ju\\[rs]n\", (uintmax_t) t);\n"
1377 "\\&\n"
1378 " exit(EXIT_SUCCESS);\n"
1379 "}\n"
1380 "\\&\n"
1381 "time_t\n"
1382 "my_mktime(struct tm *tp)\n"
1383 "{\n"
1384 " int e, isdst;\n"
1385 " time_t t;\n"
1386 " struct tm tm;\n"
1387 " unsigned char wday[sizeof(tp-E<gt>tm_wday)];\n"
1388 "\\&\n"
1389 " e = errno;\n"
1390 "\\&\n"
1391 " tm = *tp;\n"
1392 " isdst = tp-E<gt>tm_isdst;\n"
1393 "\\&\n"
1394 " memcpy(wday, &tp-E<gt>tm_wday, sizeof(wday));\n"
1395 " tp-E<gt>tm_wday = -1;\n"
1396 " t = mktime(tp);\n"
1397 " if (tp-E<gt>tm_wday == -1) {\n"
1398 " memcpy(&tp-E<gt>tm_wday, wday, sizeof(wday));\n"
1399 " return -1;\n"
1400 " }\n"
1401 "\\&\n"
1402 " if (isdst == -1)\n"
1403 " tm.tm_isdst = tp-E<gt>tm_isdst;\n"
1404 "\\&\n"
1405 " if ( tm.tm_sec != tp-E<gt>tm_sec\n"
1406 " || tm.tm_min != tp-E<gt>tm_min\n"
1407 " || tm.tm_hour != tp-E<gt>tm_hour\n"
1408 " || tm.tm_mday != tp-E<gt>tm_mday\n"
1409 " || tm.tm_mon != tp-E<gt>tm_mon\n"
1410 " || tm.tm_year != tp-E<gt>tm_year\n"
1411 " || tm.tm_isdst != tp-E<gt>tm_isdst)\n"
1412 " {\n"
1413 " errno = EINVAL;\n"
1414 " return t;\n"
1415 " }\n"
1416 "\\&\n"
1417 " if (isdst != -1)\n"
1418 " goto out;\n"
1419 "\\&\n"
1420 " tm = *tp;\n"
1421 " tm.tm_isdst = !tm.tm_isdst;\n"
1422 "\\&\n"
1423 " tm.tm_wday = -1;\n"
1424 " mktime(&tm);\n"
1425 " if (tm.tm_wday == -1)\n"
1426 " goto out;\n"
1427 "\\&\n"
1428 " if (tm.tm_isdst != tp-E<gt>tm_isdst) {\n"
1429 " errno = ENOTUNIQ;\n"
1430 " return t;\n"
1431 " }\n"
1432 "out:\n"
1433 " errno = e;\n"
1434 " return t;\n"
1435 "}\n"
1436 msgstr ""
1437 "#include E<lt>err.hE<gt>\n"
1438 "#include E<lt>errno.hE<gt>\n"
1439 "#include E<lt>stdint.hE<gt>\n"
1440 "#include E<lt>stdio.hE<gt>\n"
1441 "#include E<lt>stdlib.hE<gt>\n"
1442 "#include E<lt>string.hE<gt>\n"
1443 "#include E<lt>time.hE<gt>\n"
1444 "\\&\n"
1445 "#define is_signed(T) ((T) -1 E<lt> 1)\n"
1446 "\\&\n"
1447 "time_t my_mktime(struct tm *tp);\n"
1448 "\\&\n"
1449 "int\n"
1450 "main(int argc, char *argv[])\n"
1451 "{\n"
1452 " char **p;\n"
1453 " time_t t;\n"
1454 " struct tm tm;\n"
1455 "\\&\n"
1456 " if (argc != 8) {\n"
1457 " fprintf(stderr, \"Użycie: %s rrrr mm dd GG MM SS czyletni\\[rs]n\", argv[0]);\n"
1458 " exit(EXIT_FAILURE);\n"
1459 " }\n"
1460 "\\&\n"
1461 " p = &argv[1];\n"
1462 " tm.tm_year = atoi(*p++) - 1900;\n"
1463 " tm.tm_mon = atoi(*p++) - 1;\n"
1464 " tm.tm_mday = atoi(*p++);\n"
1465 " tm.tm_hour = atoi(*p++);\n"
1466 " tm.tm_min = atoi(*p++);\n"
1467 " tm.tm_sec = atoi(*p++);\n"
1468 " tm.tm_isdst = atoi(*p++);\n"
1469 "\\&\n"
1470 " errno = 0;\n"
1471 " tm.tm_wday = -1;\n"
1472 " t = my_mktime(&tm);\n"
1473 " if (tm.tm_wday == -1)\n"
1474 " err(EXIT_FAILURE, \"mktime\");\n"
1475 " if (errno == EINVAL || errno == ENOTUNIQ)\n"
1476 " warn(\"my_mktime\");\n"
1477 "\\&\n"
1478 " if (is_signed(time_t))\n"
1479 " printf(\"%jd\\[rs]n\", (intmax_t) t);\n"
1480 " else\n"
1481 " printf(\"%ju\\[rs]n\", (uintmax_t) t);\n"
1482 "\\&\n"
1483 " exit(EXIT_SUCCESS);\n"
1484 "}\n"
1485 "\\&\n"
1486 "time_t\n"
1487 "my_mktime(struct tm *tp)\n"
1488 "{\n"
1489 " int e, isdst;\n"
1490 " time_t t;\n"
1491 " struct tm tm;\n"
1492 " unsigned char wday[sizeof(tp-E<gt>tm_wday)];\n"
1493 "\\&\n"
1494 " e = errno;\n"
1495 "\\&\n"
1496 " tm = *tp;\n"
1497 " isdst = tp-E<gt>tm_isdst;\n"
1498 "\\&\n"
1499 " memcpy(wday, &tp-E<gt>tm_wday, sizeof(wday));\n"
1500 " tp-E<gt>tm_wday = -1;\n"
1501 " t = mktime(tp);\n"
1502 " if (tp-E<gt>tm_wday == -1) {\n"
1503 " memcpy(&tp-E<gt>tm_wday, wday, sizeof(wday));\n"
1504 " return -1;\n"
1505 " }\n"
1506 "\\&\n"
1507 " if (isdst == -1)\n"
1508 " tm.tm_isdst = tp-E<gt>tm_isdst;\n"
1509 "\\&\n"
1510 " if ( tm.tm_sec != tp-E<gt>tm_sec\n"
1511 " || tm.tm_min != tp-E<gt>tm_min\n"
1512 " || tm.tm_hour != tp-E<gt>tm_hour\n"
1513 " || tm.tm_mday != tp-E<gt>tm_mday\n"
1514 " || tm.tm_mon != tp-E<gt>tm_mon\n"
1515 " || tm.tm_year != tp-E<gt>tm_year\n"
1516 " || tm.tm_isdst != tp-E<gt>tm_isdst)\n"
1517 " {\n"
1518 " errno = EINVAL;\n"
1519 " return t;\n"
1520 " }\n"
1521 "\\&\n"
1522 " if (isdst != -1)\n"
1523 " goto out;\n"
1524 "\\&\n"
1525 " tm = *tp;\n"
1526 " tm.tm_isdst = !tm.tm_isdst;\n"
1527 "\\&\n"
1528 " tm.tm_wday = -1;\n"
1529 " mktime(&tm);\n"
1530 " if (tm.tm_wday == -1)\n"
1531 " goto out;\n"
1532 "\\&\n"
1533 " if (tm.tm_isdst != tp-E<gt>tm_isdst) {\n"
1534 " errno = ENOTUNIQ;\n"
1535 " return t;\n"
1536 " }\n"
1537 "out:\n"
1538 " errno = e;\n"
1539 " return t;\n"
1540 "}\n"
1541
1542 #. type: TH
1543 #: mageia-cauldron
1544 #, no-wrap
1545 msgid "Linux man-pages 6.17"
1546 msgstr "Linux man-pages 6.17"
1547
1548 #. type: TH
1549 #: opensuse-leap-16-1 opensuse-tumbleweed
1550 #, no-wrap
1551 msgid "Linux man-pages (unreleased)"
1552 msgstr "Linux man-pages (niewydane)"