Debian Codegraph @

po/pt_BR/man3/ctime.3.po

raw
1 # Brazilian Portuguese translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Paulo César Mendes <[email protected]>, 2000.
5 # André Luiz Fassone <[email protected]>, 2000.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:21+0200\n"
10 "PO-Revision-Date: 2000-06-02 19:20-0300\n"
11 "Last-Translator: André Luiz Fassone <[email protected]>\n"
12 "Language-Team: Brazilian Portuguese <debian-l10n-"
13 "[email protected]>\n"
14 "Language: pt_BR\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
19 "X-Generator: Virtaal 1.0.0-beta1\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 fevereiro 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, fuzzy, no-wrap
38 #| msgid "Linux man-pages 6.17"
39 msgid "Linux man-pages 6.18"
40 msgstr "Linux man-pages 6.17"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "NOME"
48
49 #. type: Plain text
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 #, fuzzy
53 #| msgid ""
54 #| "asctime, ctime, gmtime, localtime, mktime - transform binary date and "
55 #| "time to ASCII"
56 msgid ""
57 "asctime, ctime, gmtime, localtime, mktime, asctime_r, ctime_r, gmtime_r, "
58 "localtime_r - transform date and time to broken-down time or ASCII"
59 msgstr ""
60 "asctime, ctime, gmtime, localtime, mktime - convertem datas e horas binárias "
61 "para ASCII"
62
63 #. type: SH
64 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
65 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
66 #, no-wrap
67 msgid "LIBRARY"
68 msgstr "BIBLIOTECA"
69
70 #. type: Plain text
71 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
72 #: opensuse-leap-16-1 opensuse-tumbleweed
73 msgid "Standard C library (I<libc>,\\ I<-lc>)"
74 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
75
76 #. type: SH
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 #, no-wrap
80 msgid "SYNOPSIS"
81 msgstr "SINOPSE"
82
83 #. type: Plain text
84 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
85 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
86 #, no-wrap
87 msgid "B<#include E<lt>time.hE<gt>>\n"
88 msgstr "B<#include E<lt>time.hE<gt>>\n"
89
90 #. type: Plain text
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid ""
95 "B<char *asctime(const struct tm *>I<tm>B<);>\n"
96 "B<char *asctime_r(const struct tm *restrict >I<tm>B<,>\n"
97 "B< char >I<buf>B<[restrict 26]);>\n"
98 msgstr ""
99 "B<char *asctime(const struct tm *>I<tm>B<);>\n"
100 "B<char *asctime_r(const struct tm *restrict >I<tm>B<,>\n"
101 "B< char >I<buf>B<[restrict 26]);>\n"
102
103 #. type: Plain text
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 #, no-wrap
107 msgid ""
108 "B<char *ctime(const time_t *>I<timep>B<);>\n"
109 "B<char *ctime_r(const time_t *restrict >I<timep>B<,>\n"
110 "B< char >I<buf>B<[restrict 26]);>\n"
111 msgstr ""
112 "B<char *ctime(const time_t *>I<timep>B<);>\n"
113 "B<char *ctime_r(const time_t *restrict >I<timep>B<,>\n"
114 "B< char >I<buf>B<[restrict 26]);>\n"
115
116 #. type: Plain text
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 #, no-wrap
120 msgid ""
121 "B<struct tm *gmtime(const time_t *>I<timep>B<);>\n"
122 "B<struct tm *gmtime_r(const time_t *restrict >I<timep>B<,>\n"
123 "B< struct tm *restrict >I<result>B<);>\n"
124 msgstr ""
125 "B<struct tm *gmtime(const time_t *>I<timep>B<);>\n"
126 "B<struct tm *gmtime_r(const time_t *restrict >I<timep>B<,>\n"
127 "B< struct tm *restrict >I<result>B<);>\n"
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 #, no-wrap
133 msgid ""
134 "B<struct tm *localtime(const time_t *>I<timep>B<);>\n"
135 "B<struct tm *localtime_r(const time_t *restrict >I<timep>B<,>\n"
136 "B< struct tm *restrict >I<result>B<);>\n"
137 msgstr ""
138 "B<struct tm *localtime(const time_t *>I<timep>B<);>\n"
139 "B<struct tm *localtime_r(const time_t *restrict >I<timep>B<,>\n"
140 "B< struct tm *restrict >I<result>B<);>\n"
141
142 #. type: Plain text
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 #, no-wrap
146 msgid "B<time_t mktime(struct tm *>I<tm>B<);>\n"
147 msgstr "B<time_t mktime(struct tm *>I<tm>B<);>\n"
148
149 #. type: Plain text
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 msgid ""
153 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
154 msgstr ""
155 "Requisitos de macro de teste de recursos para o glibc (consulte "
156 "B<feature_test_macros>(7)):"
157
158 #. type: Plain text
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 msgid "B<asctime_r>(), B<ctime_r>(), B<gmtime_r>(), B<localtime_r>():"
162 msgstr "B<asctime_r>(), B<ctime_r>(), B<gmtime_r>(), B<localtime_r>():"
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 #, no-wrap
168 msgid ""
169 " _POSIX_C_SOURCE\n"
170 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
171 msgstr ""
172 " _POSIX_C_SOURCE\n"
173 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
174
175 #. type: SH
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 #, no-wrap
179 msgid "DESCRIPTION"
180 msgstr "DESCRIÇÃO"
181
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 #, fuzzy
186 #| msgid ""
187 #| "The B<ctime()>, B<gmtime()> and B<localtime()> functions all take an "
188 #| "argument of data type I<time_t> which represents calendar time. When "
189 #| "interpreted as an absolute time value, it represents the number of "
190 #| "seconds elapsed since 00:00:00 on January 1, 1970, Coordinated Universal "
191 #| "Time (UTC)."
192 msgid ""
193 "The B<ctime>(), B<gmtime>(), and B<localtime>() functions all take an "
194 "argument of data type I<time_t>, which represents calendar time. When "
195 "interpreted as an absolute time value, it represents the number of seconds "
196 "elapsed since the Epoch, 1970-01-01 00:00:00 +0000 (UTC)."
197 msgstr ""
198 "As funções B<ctime()>, B<gmtime()> e B<localtime()> recebem um argumento "
199 "tipo I<time_t>, que representa um ponto no tempo. Quando interpretado como "
200 "um valor absoluto, representa o número de segundos desde as 00:00:00 de 1 de "
201 "janeiro de 1970 (Hora Universal Sincronizada - UTC)."
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 #, fuzzy
207 #| msgid ""
208 #| "The B<asctime()> and B<mktime()> functions both take an argument "
209 #| "representing broken-down time which is a binary representation separated "
210 #| "into year, month, day, etc. Broken-down time is stored in the structure "
211 #| "I<tm> which is defined in I<E<lt>time.hE<gt>> as follows:"
212 msgid ""
213 "The B<asctime>() and B<mktime>() functions both take an argument "
214 "representing broken-down time, which is a representation separated into "
215 "year, month, day, and so on."
216 msgstr ""
217 "As funções B<asctime()> e B<mktime()> recebem um argumento que representa um "
218 "instante definido em termos de ano, mês, dia, etc. Este argumento é uma "
219 "struct I<tm> (definida em I<E<lt>time.hE<gt>> que contém:"
220
221 #. type: Plain text
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 msgid ""
225 "Broken-down time is stored in the structure I<tm>, described in B<tm>(3type)."
226 msgstr ""
227
228 #. type: Plain text
229 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
230 #: opensuse-tumbleweed
231 #, fuzzy
232 #| msgid ""
233 #| "The B<ctime()> function converts the calendar time I<timep> into a string "
234 #| "of the form"
235 msgid ""
236 "The call B<ctime(>I<t>B<)> is equivalent to I<asctime(localtime(t))>. It "
237 "converts the calendar time I<t> into a null-terminated string of the form"
238 msgstr "A função B<ctime()> converte I<timep> numa string no formato"
239
240 #. type: Plain text
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 #, fuzzy, no-wrap
244 #| msgid "\"Wed Jun 30 21:49:08 1993\\en\"\n"
245 msgid "\"Wed Jun 30 21:49:08 1993\\[rs]n\"\n"
246 msgstr "\"Qua Jun 30 21:49:08 1993\\en\"\n"
247
248 #. type: Plain text
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 #, fuzzy
252 #| msgid ""
253 #| "The abbreviations for the days of the week are `Sun', `Mon', `Tue', "
254 #| "`Wed', `Thu', `Fri', and `Sat'. The abbreviations for the months are "
255 #| "`Jan', `Feb', `Mar', `Apr', `May', `Jun', `Jul', `Aug', `Sep', `Oct', "
256 #| "`Nov', and `Dec'. The return value points to a statically allocated "
257 #| "string which might be overwritten by subsequent calls to any of the date "
258 #| "and time functions. The function also sets the external variable "
259 #| "I<tzname> with information about the current time zone."
260 msgid ""
261 "The abbreviations for the days of the week are \"Sun\", \"Mon\", \"Tue\", "
262 "\"Wed\", \"Thu\", \"Fri\", and \"Sat\". The abbreviations for the months "
263 "are \"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", "
264 "\"Sep\", \"Oct\", \"Nov\", and \"Dec\". The return value points to a "
265 "statically allocated string which might be overwritten by subsequent calls "
266 "to any of the date and time functions. The function also sets the external "
267 "variables I<tzname>, I<timezone>, and I<daylight> as if it called "
268 "B<tzset>(3). The reentrant version B<ctime_r>() does the same, but stores "
269 "the string in a user-supplied buffer which should have room for at least 26 "
270 "bytes. It need not set I<tzname>, I<timezone>, and I<daylight>."
271 msgstr ""
272 "As abreviaturas dos dias da semana são `Dom', `Seg', `Ter', `Qua', `Qui', "
273 "`Sex' e `Sab',e as dos meses são `Jan', `Fev', `Mar', `Abr', `Mai', `Jun', "
274 "`Jul', `Ago', `Set', `Out', `Nov' e `Dez'. O valor retornado aponta para uma "
275 "string alocada estaticamente, e que pode ser sobrescrita por chamadas "
276 "subseqüentes a quaisquer das funções de data e hora. A função também coloca "
277 "informação sobre o fuso horário atual na variável externa I<tzname>."
278
279 #. type: Plain text
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 #, fuzzy
283 #| msgid ""
284 #| "The B<asctime()> function converts the broken-down time value I<timeptr> "
285 #| "into a string with the same format as B<ctime()>. The return value "
286 #| "points to a statically allocated string which might be overwritten by "
287 #| "subsequent calls to any of the date and time functions."
288 msgid ""
289 "The B<gmtime>() function converts the calendar time I<timep> to broken-down "
290 "time representation, expressed in Coordinated Universal Time (UTC). It may "
291 "return NULL when the year does not fit into an integer. The return value "
292 "points to a statically allocated struct which might be overwritten by "
293 "subsequent calls to any of the date and time functions. The B<gmtime_r>() "
294 "function does the same, but stores the data in a user-supplied struct."
295 msgstr ""
296 "A função B<asctime()> converte o valor de tempo I<timeptr> para uma "
297 "sequência com o mesmo formato que B<ctime()>. O valor retornado aponta para "
298 "uma sequência alocada estaticamente que pode ser sobrescrita por chamadas "
299 "subseqüentes a quaisquer das funções de data e tempo."
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 #, fuzzy
305 #| msgid ""
306 #| "The B<localtime()> function converts the calendar time I<timep> to broken-"
307 #| "time representation, expressed relative to the user's specified time "
308 #| "zone. The function sets the external variables I<tzname> with "
309 #| "information about the current time zone, I<timezone> with the difference "
310 #| "between Coordinated Universal Time (UTC) and local standard time in "
311 #| "seconds, and I<daylight> to a non-zero value if standard US daylight "
312 #| "savings time rules apply."
313 msgid ""
314 "The B<localtime>() function converts the calendar time I<timep> to broken-"
315 "down time representation, expressed relative to the user's specified "
316 "timezone. The function also sets the external variables I<tzname>, "
317 "I<timezone>, and I<daylight> as if it called B<tzset>(3). The return value "
318 "points to a statically allocated struct which might be overwritten by "
319 "subsequent calls to any of the date and time functions. The "
320 "B<localtime_r>() function does the same, but stores the data in a user-"
321 "supplied struct. It need not set I<tzname>, I<timezone>, and I<daylight>."
322 msgstr ""
323 "A função B<localtime()> converte o instante I<timep> para a representação "
324 "detalhada UTC, mas corrigida para o fuso horário do usuário. Esta função "
325 "coloca informações de fuso horário na variável externa I<tzname>, a "
326 "diferença entre a UTC e a hora local em segundos em I<timezone> e um valor "
327 "diferente de zero em I<daylight> se o horário de verão estiver em vigor."
328
329 #. type: Plain text
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 #, fuzzy
333 #| msgid ""
334 #| "The B<asctime()> function converts the broken-down time value I<timeptr> "
335 #| "into a string with the same format as B<ctime()>. The return value "
336 #| "points to a statically allocated string which might be overwritten by "
337 #| "subsequent calls to any of the date and time functions."
338 msgid ""
339 "The B<asctime>() function converts the broken-down time value I<tm> into a "
340 "null-terminated string with the same format as B<ctime>(). The return value "
341 "points to a statically allocated string which might be overwritten by "
342 "subsequent calls to any of the date and time functions. The B<asctime_r>() "
343 "function does the same, but stores the string in a user-supplied buffer "
344 "which should have room for at least 26 bytes."
345 msgstr ""
346 "A função B<asctime()> converte o valor de tempo I<timeptr> para uma "
347 "sequência com o mesmo formato que B<ctime()>. O valor retornado aponta para "
348 "uma sequência alocada estaticamente que pode ser sobrescrita por chamadas "
349 "subseqüentes a quaisquer das funções de data e tempo."
350
351 #. type: Plain text
352 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
353 #: opensuse-leap-16-1 opensuse-tumbleweed
354 msgid ""
355 "The B<mktime>() function converts a broken-down time structure, expressed "
356 "as local time, to calendar time representation. The function ignores the "
357 "values supplied by the caller in the I<tm_wday> and I<tm_yday> fields. The "
358 "value specified in the I<tm_isdst> field informs B<mktime>() whether or not "
359 "daylight saving time (DST) is in effect for the time supplied in the I<tm> "
360 "structure: a positive value means DST is in effect; zero means that DST is "
361 "not in effect; and a negative value means that B<mktime>() should (use "
362 "timezone information and system databases to) attempt to determine whether "
363 "DST is in effect at the specified time. See B<timegm>(3) for a UTC "
364 "equivalent of this function."
365 msgstr ""
366
367 #. type: Plain text
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 msgid ""
371 "The B<mktime>() function modifies the fields of the I<tm> structure as "
372 "follows: I<tm_wday> and I<tm_yday> are set to values determined from the "
373 "contents of the other fields; if structure members are outside their valid "
374 "interval, they will be normalized (so that, for example, 40 October is "
375 "changed into 9 November); I<tm_isdst> is set (regardless of its initial "
376 "value) to a positive value or to 0, respectively, to indicate whether DST "
377 "is or is not in effect at the specified time. The function also sets the "
378 "external variables I<tzname>, I<timezone>, and I<daylight> as if it called "
379 "B<tzset>(3)."
380 msgstr ""
381
382 #. type: Plain text
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 msgid ""
386 "If the specified broken-down time cannot be represented as calendar time "
387 "(seconds since the Epoch), B<mktime>() returns I<(time_t)\\ -1> and does "
388 "not alter the members of the broken-down time structure."
389 msgstr ""
390
391 #. type: SH
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 #, no-wrap
395 msgid "RETURN VALUE"
396 msgstr "VALOR DE RETORNO"
397
398 #. type: Plain text
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 msgid ""
402 "On success, B<gmtime>() and B<localtime>() return a pointer to a "
403 "I<struct\\ tm>."
404 msgstr ""
405
406 #. type: Plain text
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 msgid ""
410 "On success, B<gmtime_r>() and B<localtime_r>() return the address of the "
411 "structure pointed to by I<result>."
412 msgstr ""
413
414 #. type: Plain text
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 msgid "On success, B<asctime>() and B<ctime>() return a pointer to a string."
418 msgstr ""
419
420 #. type: Plain text
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 msgid ""
424 "On success, B<asctime_r>() and B<ctime_r>() return a pointer to the string "
425 "pointed to by I<buf>."
426 msgstr ""
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
436 #. type: Plain text
437 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
438 #: opensuse-leap-16-1 opensuse-tumbleweed
439 msgid ""
440 "On error, B<mktime>() returns the value I<(time_t)\\ -1>, and leaves the "
441 "I<tm-E<gt>tm_wday> member unmodified. The remaining functions return NULL "
442 "on error. On error, I<errno> is set to indicate the error."
443 msgstr ""
444
445 #. type: SH
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 #, no-wrap
449 msgid "ERRORS"
450 msgstr "ERROS"
451
452 #. type: TP
453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
455 #, no-wrap
456 msgid "B<EOVERFLOW>"
457 msgstr "B<EOVERFLOW>"
458
459 #. type: Plain text
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 msgid "The result cannot be represented."
463 msgstr ""
464
465 #. type: SH
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 #, no-wrap
469 msgid "ATTRIBUTES"
470 msgstr "ATRIBUTOS"
471
472 #. type: Plain text
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 msgid ""
476 "For an explanation of the terms used in this section, see B<attributes>(7)."
477 msgstr ""
478 "Para uma explicação dos termos usados nesta seção, consulte 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 "Interface"
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 "Atributo"
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 "Valor"
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 "Thread safety"
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 #, fuzzy, no-wrap
548 #| msgid "MT-Safe env locale"
549 msgid "MT-Unsafe race:asctime locale"
550 msgstr "MT-Safe env locale"
551
552 #. type: TP
553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
555 #, no-wrap
556 msgid "B<asctime_r>()"
557 msgstr "B<asctime_r>()"
558
559 #. type: tbl table
560 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
561 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
562 #, no-wrap
563 msgid "MT-Safe locale"
564 msgstr "MT-Safe locale"
565
566 #. type: TQ
567 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
568 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
569 #, no-wrap
570 msgid "B<ctime>()"
571 msgstr "B<ctime>()"
572
573 #. type: tbl table
574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
576 #, fuzzy, no-wrap
577 #| msgid "MT-Safe env locale"
578 msgid ""
579 "MT-Unsafe race:tmbuf\n"
580 "race:asctime env locale"
581 msgstr "MT-Safe 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-Safe 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 #, fuzzy, no-wrap
620 #| msgid "MT-Safe env locale"
621 msgid "MT-Unsafe race:tmbuf env locale"
622 msgstr "MT-Safe env locale"
623
624 #. type: SH
625 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
626 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
627 #, no-wrap
628 msgid "VERSIONS"
629 msgstr "VERSÕES"
630
631 #. type: Plain text
632 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
633 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
634 msgid ""
635 "POSIX doesn't specify the parameters of B<ctime_r>() to be I<restrict>; "
636 "that is specific to glibc."
637 msgstr ""
638
639 #. type: Plain text
640 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
641 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
642 msgid ""
643 "In many implementations, including glibc, a 0 in I<tm_mday> is interpreted "
644 "as meaning the last day of the preceding month."
645 msgstr ""
646
647 #. See http://thread.gmane.org/gmane.comp.time.tz/2034/
648 #. type: Plain text
649 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
650 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
651 msgid ""
652 "According to POSIX.1, B<localtime>() is required to behave as though "
653 "B<tzset>(3) was called, while B<localtime_r>() does not have this "
654 "requirement. For portable code, B<tzset>(3) should be called before "
655 "B<localtime_r>()."
656 msgstr ""
657
658 #. type: SH
659 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
660 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
661 #, no-wrap
662 msgid "STANDARDS"
663 msgstr "PADRÕES"
664
665 #. type: TP
666 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
667 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
668 #, fuzzy, no-wrap
669 #| msgid "B<ctime>()"
670 msgid "B<gmtime>()"
671 msgstr "B<ctime>()"
672
673 #. type: TQ
674 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
675 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
676 #, fuzzy, no-wrap
677 #| msgid "B<ctime>()"
678 msgid "B<localtime>()"
679 msgstr "B<ctime>()"
680
681 #. type: TQ
682 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
683 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
684 #, fuzzy, no-wrap
685 #| msgid "B<ctime>()"
686 msgid "B<mktime>()"
687 msgstr "B<ctime>()"
688
689 #. type: Plain text
690 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
691 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
692 msgid "C23, POSIX.1-2024."
693 msgstr "C23, POSIX.1-2024."
694
695 #. type: TP
696 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
697 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
698 #, fuzzy, no-wrap
699 #| msgid "B<asctime_r>()"
700 msgid "B<gmtime_r>()"
701 msgstr "B<asctime_r>()"
702
703 #. type: TQ
704 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
705 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
706 #, fuzzy, no-wrap
707 #| msgid "B<asctime_r>()"
708 msgid "B<localtime_r>()"
709 msgstr "B<asctime_r>()"
710
711 #. type: Plain text
712 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
713 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
714 msgid "POSIX.1-2024."
715 msgstr "POSIX.1-2024."
716
717 #. type: TQ
718 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
719 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
720 #, fuzzy, no-wrap
721 #| msgid "B<asctime_r>()"
722 msgid "B<ctime_r>()"
723 msgstr "B<asctime_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 ""
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 "HISTÓRICO"
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 #, fuzzy
742 #| msgid "C89, POSIX.1-2001."
743 msgid "C89, POSIX.1-1988."
744 msgstr "C89, POSIX.1-2001."
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 ""
750 "C89, POSIX.1-1988. Marked obsolescent in C23 and in POSIX.1-2008 "
751 "(recommending B<strftime>(3))."
752 msgstr ""
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 #, fuzzy
758 #| msgid "POSIX.1-2001, C99."
759 msgid "POSIX.1-1996."
760 msgstr "POSIX.1-2001, C99."
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 ""
766 "POSIX.1-1996. Marked obsolescent in POSIX.1-2008. Removed in POSIX.1-2024 "
767 "(recommending B<strftime>(3))."
768 msgstr ""
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 ""
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
787 #. type: Plain text
788 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
789 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
790 msgid ""
791 "POSIX.1 says: \"The B<asctime>(), B<ctime>(), B<gmtime>(), and "
792 "B<localtime>() functions shall return values in one of two static objects: "
793 "a broken-down time structure and an array of type I<char>. Execution of any "
794 "of the functions that return a pointer to one of these object types may "
795 "overwrite the information in any object of the same type pointed to by the "
796 "value returned from any previous call to any of them.\" This can occur in "
797 "the glibc implementation."
798 msgstr ""
799
800 #. type: SS
801 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
802 #: opensuse-leap-16-1 opensuse-tumbleweed
803 #, fuzzy, no-wrap
804 #| msgid "B<ctime>()"
805 msgid "mktime()"
806 msgstr "B<ctime>()"
807
808 #. type: Plain text
809 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
810 #: opensuse-leap-16-1 opensuse-tumbleweed
811 msgid ""
812 "I<(time_t) -1> can represent a valid time (one second before the Epoch). To "
813 "determine whether B<mktime>() failed, one must use the I<tm-E<gt>tm_wday> "
814 "field. See the example program in EXAMPLES."
815 msgstr ""
816
817 #. type: Plain text
818 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
819 #: opensuse-leap-16-1 opensuse-tumbleweed
820 msgid ""
821 "The handling of a non-negative I<tm_isdst> in B<mktime>() is poorly "
822 "specified, and passing a value that is incorrect for the time specified "
823 "yields unspecified results. Since B<mktime>() is one of the few functions "
824 "that knows when DST is in effect, providing a correct value may be "
825 "difficult. One workaround for this is to call B<mktime>() twice, once with "
826 "I<tm_isdst> set to zero, and once with I<tm_isdst> set to a positive value, "
827 "and discarding the results from the call that changes it. If neither call "
828 "changes I<tm_isdst> then the time specified probably happens during a fall-"
829 "back period where DST begins or ends, and both results are valid but "
830 "represent two different times. If both calls change it, that could indicate "
831 "a fall-forward transition, or some other reason why the time specified does "
832 "not exist."
833 msgstr ""
834
835 #. type: Plain text
836 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
837 #: opensuse-leap-16-1 opensuse-tumbleweed
838 msgid ""
839 "The specification of time zones and daylight saving time are up to regional "
840 "governments, change often, and may include discontinuities beyond "
841 "I<mktime>'s ability to document a result. For example, a change in the "
842 "timezone definition may cause a clock time to be repeated or skipped without "
843 "a corresponding DST change."
844 msgstr ""
845
846 #. type: SH
847 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
848 #: opensuse-leap-16-1 opensuse-tumbleweed
849 #, no-wrap
850 msgid "EXAMPLES"
851 msgstr "EXEMPLOS"
852
853 #. type: Plain text
854 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
855 #: opensuse-leap-16-1 opensuse-tumbleweed
856 msgid ""
857 "The program below defines a wrapper that allows detecting invalid and "
858 "ambiguous times, with B<EINVAL> and B<ENOTUNIQ>, respectively."
859 msgstr ""
860
861 #. type: Plain text
862 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
863 #: opensuse-leap-16-1 opensuse-tumbleweed
864 msgid "The following shell session shows sample runs of the program:"
865 msgstr ""
866
867 #. type: Plain text
868 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
869 #: opensuse-leap-16-1 opensuse-tumbleweed
870 #, no-wrap
871 msgid ""
872 "$\\ B<TZ=UTC ./a.out 1969 12 31 23 59 59 0>;\n"
873 "-1\n"
874 "$\n"
875 "$\\ B<export TZ=Europe/Madrid>;\n"
876 "$\n"
877 "$\\ B<./a.out 2147483647 2147483647 00 00 00 00 -1>;\n"
878 "a.out: mktime: Value too large for defined data type\n"
879 "$\n"
880 "$\\ B<./a.out 2024 08 23 00 17 53 -1>;\n"
881 "1724365073\n"
882 "$\\ B<./a.out 2024 08 23 00 17 53 0>;\n"
883 "a.out: my_mktime: Invalid argument\n"
884 "1724368673\n"
885 "$\\ B<./a.out 2024 08 23 00 17 53 1>;\n"
886 "1724365073\n"
887 "$\n"
888 "$\\ B<./a.out 2024 02 23 00 17 53 -1>;\n"
889 "1708643873\n"
890 "$\\ B<./a.out 2024 02 23 00 17 53 0>;\n"
891 "1708643873\n"
892 "$\\ B<./a.out 2024 02 23 00 17 53 1>;\n"
893 "a.out: my_mktime: Invalid argument\n"
894 "1708640273\n"
895 "$\n"
896 "$\\ B<./a.out 2023 03 26 02 17 53 -1>;\n"
897 "a.out: my_mktime: Invalid argument\n"
898 "1679793473\n"
899 "$\n"
900 "$\\ B<./a.out 2023 10 29 02 17 53 -1>;\n"
901 "a.out: my_mktime: Name not unique on network\n"
902 "1698542273\n"
903 "$\\ B<./a.out 2023 10 29 02 17 53 0>;\n"
904 "1698542273\n"
905 "$\\ B<./a.out 2023 10 29 02 17 53 1>;\n"
906 "1698538673\n"
907 "$\n"
908 "$\\ B<./a.out 2023 02 29 12 00 00 -1>;\n"
909 "a.out: my_mktime: Invalid argument\n"
910 "1677668400\n"
911 msgstr ""
912
913 #. type: SS
914 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
915 #: opensuse-leap-16-1 opensuse-tumbleweed
916 #, fuzzy, no-wrap
917 #| msgid "Program source"
918 msgid "Program source: mktime.c"
919 msgstr "Fonte do programa"
920
921 #. type: Plain text
922 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
923 #: opensuse-tumbleweed
924 #, no-wrap
925 msgid ""
926 "#include E<lt>err.hE<gt>\n"
927 "#include E<lt>errno.hE<gt>\n"
928 "#include E<lt>stdint.hE<gt>\n"
929 "#include E<lt>stdio.hE<gt>\n"
930 "#include E<lt>stdlib.hE<gt>\n"
931 "#include E<lt>string.hE<gt>\n"
932 "#include E<lt>time.hE<gt>\n"
933 "\\&\n"
934 "#define is_signed(T) ((T) -1 E<lt> 1)\n"
935 "\\&\n"
936 "static time_t my_mktime(struct tm *tp);\n"
937 "\\&\n"
938 "int\n"
939 "main(int argc, char *argv[])\n"
940 "{\n"
941 " char **p;\n"
942 " time_t t;\n"
943 " struct tm tm;\n"
944 "\\&\n"
945 " if (argc != 8) {\n"
946 " fprintf(stderr, \"Usage: %s yyyy mm dd HH MM SS isdst\\[rs]n\", argv[0]);\n"
947 " exit(EXIT_FAILURE);\n"
948 " }\n"
949 "\\&\n"
950 " p = &argv[1];\n"
951 " tm.tm_year = atoi(*p++) - 1900;\n"
952 " tm.tm_mon = atoi(*p++) - 1;\n"
953 " tm.tm_mday = atoi(*p++);\n"
954 " tm.tm_hour = atoi(*p++);\n"
955 " tm.tm_min = atoi(*p++);\n"
956 " tm.tm_sec = atoi(*p++);\n"
957 " tm.tm_isdst = atoi(*p++);\n"
958 "\\&\n"
959 " errno = 0;\n"
960 " tm.tm_wday = -1;\n"
961 " t = my_mktime(&tm);\n"
962 " if (tm.tm_wday == -1)\n"
963 " err(EXIT_FAILURE, \"mktime\");\n"
964 " if (errno == EINVAL || errno == ENOTUNIQ)\n"
965 " warn(\"my_mktime\");\n"
966 "\\&\n"
967 " if (is_signed(time_t))\n"
968 " printf(\"%jd\\[rs]n\", (intmax_t) t);\n"
969 " else\n"
970 " printf(\"%ju\\[rs]n\", (uintmax_t) t);\n"
971 "\\&\n"
972 " exit(EXIT_SUCCESS);\n"
973 "}\n"
974 "\\&\n"
975 "static time_t\n"
976 "my_mktime(struct tm *tp)\n"
977 "{\n"
978 " int e, isdst;\n"
979 " time_t t;\n"
980 " struct tm tm;\n"
981 " unsigned char wday[sizeof(tp-E<gt>tm_wday)];\n"
982 "\\&\n"
983 " e = errno;\n"
984 "\\&\n"
985 " tm = *tp;\n"
986 " isdst = tp-E<gt>tm_isdst;\n"
987 "\\&\n"
988 " memcpy(wday, &tp-E<gt>tm_wday, sizeof(wday));\n"
989 " tp-E<gt>tm_wday = -1;\n"
990 " t = mktime(tp);\n"
991 " if (tp-E<gt>tm_wday == -1) {\n"
992 " memcpy(&tp-E<gt>tm_wday, wday, sizeof(wday));\n"
993 " return -1;\n"
994 " }\n"
995 "\\&\n"
996 " if (isdst == -1)\n"
997 " tm.tm_isdst = tp-E<gt>tm_isdst;\n"
998 "\\&\n"
999 " if ( tm.tm_sec != tp-E<gt>tm_sec\n"
1000 " || tm.tm_min != tp-E<gt>tm_min\n"
1001 " || tm.tm_hour != tp-E<gt>tm_hour\n"
1002 " || tm.tm_mday != tp-E<gt>tm_mday\n"
1003 " || tm.tm_mon != tp-E<gt>tm_mon\n"
1004 " || tm.tm_year != tp-E<gt>tm_year\n"
1005 " || tm.tm_isdst != tp-E<gt>tm_isdst)\n"
1006 " {\n"
1007 " errno = EINVAL;\n"
1008 " return t;\n"
1009 " }\n"
1010 "\\&\n"
1011 " if (isdst != -1)\n"
1012 " goto out;\n"
1013 "\\&\n"
1014 " tm = *tp;\n"
1015 " tm.tm_isdst = !tm.tm_isdst;\n"
1016 "\\&\n"
1017 " tm.tm_wday = -1;\n"
1018 " mktime(&tm);\n"
1019 " if (tm.tm_wday == -1)\n"
1020 " goto out;\n"
1021 "\\&\n"
1022 " if (tm.tm_isdst != tp-E<gt>tm_isdst) {\n"
1023 " errno = ENOTUNIQ;\n"
1024 " return t;\n"
1025 " }\n"
1026 "out:\n"
1027 " errno = e;\n"
1028 " return t;\n"
1029 "}\n"
1030 msgstr ""
1031
1032 #. #-#-#-#-# archlinux: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1033 #. SRC END
1034 #. type: SH
1035 #. #-#-#-#-# debian-trixie: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1036 #. type: SH
1037 #. #-#-#-#-# debian-unstable: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1038 #. SRC END
1039 #. type: SH
1040 #. #-#-#-#-# fedora-44: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1041 #. SRC END
1042 #. type: SH
1043 #. #-#-#-#-# fedora-rawhide: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1044 #. SRC END
1045 #. type: SH
1046 #. #-#-#-#-# mageia-cauldron: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1047 #. SRC END
1048 #. type: SH
1049 #. #-#-#-#-# opensuse-leap-16-1: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1050 #. SRC END
1051 #. type: SH
1052 #. #-#-#-#-# opensuse-tumbleweed: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1053 #. SRC END
1054 #. type: SH
1055 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1056 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1057 #, no-wrap
1058 msgid "SEE ALSO"
1059 msgstr "VEJA TAMBÉM"
1060
1061 #. type: Plain text
1062 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1063 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1064 msgid ""
1065 "B<date>(1), B<gettimeofday>(2), B<time>(2), B<utime>(2), B<clock>(3), "
1066 "B<difftime>(3), B<strftime>(3), B<strptime>(3), B<timegm>(3), B<tzset>(3), "
1067 "B<time>(7)"
1068 msgstr ""
1069 "B<date>(1), B<gettimeofday>(2), B<time>(2), B<utime>(2), B<clock>(3), "
1070 "B<difftime>(3), B<strftime>(3), B<strptime>(3), B<timegm>(3), B<tzset>(3), "
1071 "B<time>(7)"
1072
1073 #. type: TH
1074 #: debian-trixie
1075 #, no-wrap
1076 msgid "2024-06-15"
1077 msgstr "15 junho 2024"
1078
1079 #. type: TH
1080 #: debian-trixie
1081 #, no-wrap
1082 msgid "Linux man-pages 6.9.1"
1083 msgstr "Linux man-pages 6.9.1"
1084
1085 #. type: Plain text
1086 #: debian-trixie
1087 msgid "Standard C library (I<libc>, I<-lc>)"
1088 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
1089
1090 #. type: Plain text
1091 #: debian-trixie fedora-44 fedora-rawhide
1092 #, fuzzy
1093 #| msgid ""
1094 #| "The B<ctime()> function converts the calendar time I<timep> into a string "
1095 #| "of the form"
1096 msgid ""
1097 "The call B<ctime(>I<t>B<)> is equivalent to B<asctime(localtime(>I<t>B<))>. "
1098 "It converts the calendar time I<t> into a null-terminated string of the form"
1099 msgstr "A função B<ctime()> converte I<timep> numa string no formato"
1100
1101 #. type: Plain text
1102 #: debian-trixie
1103 msgid ""
1104 "The B<mktime>() function converts a broken-down time structure, expressed "
1105 "as local time, to calendar time representation. The function ignores the "
1106 "values supplied by the caller in the I<tm_wday> and I<tm_yday> fields. The "
1107 "value specified in the I<tm_isdst> field informs B<mktime>() whether or not "
1108 "daylight saving time (DST) is in effect for the time supplied in the I<tm> "
1109 "structure: a positive value means DST is in effect; zero means that DST is "
1110 "not in effect; and a negative value means that B<mktime>() should (use "
1111 "timezone information and system databases to) attempt to determine whether "
1112 "DST is in effect at the specified time."
1113 msgstr ""
1114
1115 #. type: Plain text
1116 #: debian-trixie
1117 msgid ""
1118 "On error, B<mktime>() returns the value I<(time_t)\\ -1>. The remaining "
1119 "functions return NULL on error. On error, I<errno> is set to indicate the "
1120 "error."
1121 msgstr ""
1122
1123 #. type: SH
1124 #: debian-trixie
1125 #, no-wrap
1126 msgid "NOTES"
1127 msgstr "NOTAS"
1128
1129 #. type: TH
1130 #: fedora-44 fedora-rawhide
1131 #, no-wrap
1132 msgid "2025-02-18"
1133 msgstr "18 fevereiro 2025"
1134
1135 #. type: TH
1136 #: fedora-44 fedora-rawhide
1137 #, no-wrap
1138 msgid "Linux man-pages 6.13"
1139 msgstr "Linux man-pages 6.13"
1140
1141 #. type: Plain text
1142 #: fedora-44 fedora-rawhide
1143 #, no-wrap
1144 msgid ""
1145 "#include E<lt>err.hE<gt>\n"
1146 "#include E<lt>errno.hE<gt>\n"
1147 "#include E<lt>stdint.hE<gt>\n"
1148 "#include E<lt>stdio.hE<gt>\n"
1149 "#include E<lt>stdlib.hE<gt>\n"
1150 "#include E<lt>string.hE<gt>\n"
1151 "#include E<lt>time.hE<gt>\n"
1152 "\\&\n"
1153 "#define is_signed(T) ((T) -1 E<lt> 1)\n"
1154 "\\&\n"
1155 "time_t my_mktime(struct tm *tp);\n"
1156 "\\&\n"
1157 "int\n"
1158 "main(int argc, char *argv[])\n"
1159 "{\n"
1160 " char **p;\n"
1161 " time_t t;\n"
1162 " struct tm tm;\n"
1163 "\\&\n"
1164 " if (argc != 8) {\n"
1165 " fprintf(stderr, \"Usage: %s yyyy mm dd HH MM SS isdst\\[rs]n\", argv[0]);\n"
1166 " exit(EXIT_FAILURE);\n"
1167 " }\n"
1168 "\\&\n"
1169 " p = &argv[1];\n"
1170 " tm.tm_year = atoi(*p++) - 1900;\n"
1171 " tm.tm_mon = atoi(*p++) - 1;\n"
1172 " tm.tm_mday = atoi(*p++);\n"
1173 " tm.tm_hour = atoi(*p++);\n"
1174 " tm.tm_min = atoi(*p++);\n"
1175 " tm.tm_sec = atoi(*p++);\n"
1176 " tm.tm_isdst = atoi(*p++);\n"
1177 "\\&\n"
1178 " errno = 0;\n"
1179 " tm.tm_wday = -1;\n"
1180 " t = my_mktime(&tm);\n"
1181 " if (tm.tm_wday == -1)\n"
1182 " err(EXIT_FAILURE, \"mktime\");\n"
1183 " if (errno == EINVAL || errno == ENOTUNIQ)\n"
1184 " warn(\"my_mktime\");\n"
1185 "\\&\n"
1186 " if (is_signed(time_t))\n"
1187 " printf(\"%jd\\[rs]n\", (intmax_t) t);\n"
1188 " else\n"
1189 " printf(\"%ju\\[rs]n\", (uintmax_t) t);\n"
1190 "\\&\n"
1191 " exit(EXIT_SUCCESS);\n"
1192 "}\n"
1193 "\\&\n"
1194 "time_t\n"
1195 "my_mktime(struct tm *tp)\n"
1196 "{\n"
1197 " int e, isdst;\n"
1198 " time_t t;\n"
1199 " struct tm tm;\n"
1200 " unsigned char wday[sizeof(tp-E<gt>tm_wday)];\n"
1201 "\\&\n"
1202 " e = errno;\n"
1203 "\\&\n"
1204 " tm = *tp;\n"
1205 " isdst = tp-E<gt>tm_isdst;\n"
1206 "\\&\n"
1207 " memcpy(wday, &tp-E<gt>tm_wday, sizeof(wday));\n"
1208 " tp-E<gt>tm_wday = -1;\n"
1209 " t = mktime(tp);\n"
1210 " if (tp-E<gt>tm_wday == -1) {\n"
1211 " memcpy(&tp-E<gt>tm_wday, wday, sizeof(wday));\n"
1212 " return -1;\n"
1213 " }\n"
1214 "\\&\n"
1215 " if (isdst == -1)\n"
1216 " tm.tm_isdst = tp-E<gt>tm_isdst;\n"
1217 "\\&\n"
1218 " if ( tm.tm_sec != tp-E<gt>tm_sec\n"
1219 " || tm.tm_min != tp-E<gt>tm_min\n"
1220 " || tm.tm_hour != tp-E<gt>tm_hour\n"
1221 " || tm.tm_mday != tp-E<gt>tm_mday\n"
1222 " || tm.tm_mon != tp-E<gt>tm_mon\n"
1223 " || tm.tm_year != tp-E<gt>tm_year\n"
1224 " || tm.tm_isdst != tp-E<gt>tm_isdst)\n"
1225 " {\n"
1226 " errno = EINVAL;\n"
1227 " return t;\n"
1228 " }\n"
1229 "\\&\n"
1230 " if (isdst != -1)\n"
1231 " goto out;\n"
1232 "\\&\n"
1233 " tm = *tp;\n"
1234 " tm.tm_isdst = !tm.tm_isdst;\n"
1235 "\\&\n"
1236 " tm.tm_wday = -1;\n"
1237 " mktime(&tm);\n"
1238 " if (tm.tm_wday == -1)\n"
1239 " goto out;\n"
1240 "\\&\n"
1241 " if (tm.tm_isdst != tp-E<gt>tm_isdst) {\n"
1242 " errno = ENOTUNIQ;\n"
1243 " return t;\n"
1244 " }\n"
1245 "out:\n"
1246 " errno = e;\n"
1247 " return t;\n"
1248 "}\n"
1249 msgstr ""
1250
1251 #. type: TH
1252 #: mageia-cauldron
1253 #, no-wrap
1254 msgid "Linux man-pages 6.17"
1255 msgstr "Linux man-pages 6.17"
1256
1257 #. type: TH
1258 #: opensuse-leap-16-1 opensuse-tumbleweed
1259 #, no-wrap
1260 msgid "Linux man-pages (unreleased)"
1261 msgstr "Linux man-pages (não lançado)"