Debian Codegraph @

po/es/man3/ctime.3.po

raw
1 # Spanish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Sebastian Desimone <[email protected]>, 1998.
5 # Gerardo Aburruzaga García <[email protected]>, 1998.
6 # Juan Piernas <[email protected]>, 1999.
7 # Miguel Pérez Ibars <[email protected]>, 2005.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: manpages-l10n\n"
11 "POT-Creation-Date: 2026-06-05 06:21+0200\n"
12 "PO-Revision-Date: 2021-01-28 18:56+0100\n"
13 "Last-Translator: Miguel Pérez Ibars <[email protected]>\n"
14 "Language-Team: Spanish <[email protected]>\n"
15 "Language: es\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20 "X-Generator: Lokalize 20.04.1\n"
21
22 #. type: TH
23 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
24 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
25 #, no-wrap
26 msgid "ctime"
27 msgstr "ctime"
28
29 #. type: TH
30 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
31 #: opensuse-tumbleweed
32 #, no-wrap
33 msgid "2026-02-08"
34 msgstr "8 Febrero 2026"
35
36 #. type: TH
37 #: archlinux debian-unstable
38 #, fuzzy, no-wrap
39 #| msgid "Linux man-pages 6.17"
40 msgid "Linux man-pages 6.18"
41 msgstr "Páginas de Manual de Linux 6.17"
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 "NOMBRE"
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 - transforman fechas y horas binarias a 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 "BIBLIOTECA"
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 "Biblioteca Estándar 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 "SINOPSIS"
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 "Requisitos de Macros de Prueba de Características para glibc (véase "
153 "B<feature_test_macros>(7)):"
154
155 #. type: Plain text
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 msgid "B<asctime_r>(), B<ctime_r>(), B<gmtime_r>(), B<localtime_r>():"
159 msgstr "B<asctime_r>(), B<ctime_r>(), B<gmtime_r>(), B<localtime_r>():"
160
161 #. type: Plain text
162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
164 #, no-wrap
165 msgid ""
166 " _POSIX_C_SOURCE\n"
167 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
168 msgstr ""
169 " _POSIX_C_SOURCE\n"
170 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
171
172 #. type: SH
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 #, no-wrap
176 msgid "DESCRIPTION"
177 msgstr "DESCRIPCIÓN"
178
179 #. type: Plain text
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 #, fuzzy
183 #| msgid ""
184 #| "The B<ctime()>, B<gmtime()> and B<localtime()> functions all take an "
185 #| "argument of data type I<time_t> which represents calendar time. When "
186 #| "interpreted as an absolute time value, it represents the number of "
187 #| "seconds elapsed since 00:00:00 on January 1, 1970, Coordinated Universal "
188 #| "Time (UTC)."
189 msgid ""
190 "The B<ctime>(), B<gmtime>(), and B<localtime>() functions all take an "
191 "argument of data type I<time_t>, which represents calendar time. When "
192 "interpreted as an absolute time value, it represents the number of seconds "
193 "elapsed since the Epoch, 1970-01-01 00:00:00 +0000 (UTC)."
194 msgstr ""
195 "La funciones B<ctime()>, B<gmtime()> y B<localtime()> toman todas un "
196 "argumento de tipo I<time_t> que representa el tiempo de calendario. Al ser "
197 "interpretado como un valor de tiempo absoluto, representa el número de "
198 "segundos transcurridos desde las 00:00:00 del 1 de Enero de 1970, en Tiempo "
199 "Universal Coordinado, Coordinated Universal Time (UTC)."
200
201 #. type: Plain text
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 msgid ""
205 "The B<asctime>() and B<mktime>() functions both take an argument "
206 "representing broken-down time, which is a representation separated into "
207 "year, month, day, and so on."
208 msgstr ""
209 "Las funciones B<asctime>() y B<mktime>() toman un argumento que representa "
210 "el tiempo descompuesto, que es una representación separada en año, mes, día, "
211 "etc."
212
213 #. type: Plain text
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 #, fuzzy
217 #| msgid ""
218 #| "Broken-down time is stored in the structure I<tm>, which is defined in "
219 #| "I<E<lt>time.hE<gt>> as follows:"
220 msgid ""
221 "Broken-down time is stored in the structure I<tm>, described in B<tm>(3type)."
222 msgstr ""
223 "El tiempo descompuesto se guarda en una estructura I<tm>, que se define en "
224 "I<E<lt>time.hE<gt>> como sigue:"
225
226 #. type: Plain text
227 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
228 #: opensuse-tumbleweed
229 #, fuzzy
230 #| msgid ""
231 #| "The call B<ctime(>I<t>B<)> is equivalent to "
232 #| "B<asctime(localtime(>I<t>B<))>. It converts the calendar time I<t> into "
233 #| "a string of the form"
234 msgid ""
235 "The call B<ctime(>I<t>B<)> is equivalent to I<asctime(localtime(t))>. It "
236 "converts the calendar time I<t> into a null-terminated string of the form"
237 msgstr ""
238 "La llamada B<ctime(>I<t>B<)> es equivalente a B<asctime(localtime(I<t>B<))>. "
239 "Convierte el tiempo de calendario I<t> a una cadena de la forma"
240
241 #. type: Plain text
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 #, fuzzy, no-wrap
245 #| msgid "\"Wed Jun 30 21:49:08 1993\\en\"\n"
246 msgid "\"Wed Jun 30 21:49:08 1993\\[rs]n\"\n"
247 msgstr "\"Wed Jun 30 21:49:08 1993\\en\"\n"
248
249 #. type: Plain text
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, fuzzy
253 #| msgid ""
254 #| "The abbreviations for the days of the week are `Sun', `Mon', `Tue', "
255 #| "`Wed', `Thu', `Fri', and `Sat'. The abbreviations for the months are "
256 #| "`Jan', `Feb', `Mar', `Apr', `May', `Jun', `Jul', `Aug', `Sep', `Oct', "
257 #| "`Nov', and `Dec'. The return value points to a statically allocated "
258 #| "string which might be overwritten by subsequent calls to any of the date "
259 #| "and time functions. The function also sets the external variable "
260 #| "I<tzname> (see B<tzset>(3)) with information about the current time "
261 #| "zone. The re-entrant version B<ctime_r()> does the same, but stores the "
262 #| "string in a user-supplied buffer of length at least 26. It need not set "
263 #| "I<tzname>."
264 msgid ""
265 "The abbreviations for the days of the week are \"Sun\", \"Mon\", \"Tue\", "
266 "\"Wed\", \"Thu\", \"Fri\", and \"Sat\". The abbreviations for the months "
267 "are \"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", "
268 "\"Sep\", \"Oct\", \"Nov\", and \"Dec\". The return value points to a "
269 "statically allocated string which might be overwritten by subsequent calls "
270 "to any of the date and time functions. The function also sets the external "
271 "variables I<tzname>, I<timezone>, and I<daylight> as if it called "
272 "B<tzset>(3). The reentrant version B<ctime_r>() does the same, but stores "
273 "the string in a user-supplied buffer which should have room for at least 26 "
274 "bytes. It need not set I<tzname>, I<timezone>, and I<daylight>."
275 msgstr ""
276 "Las abreviaturas para los dias de la semana son `Sun', `Mon', `Tue', `Wed', "
277 "`Thu', `Fri', y `Sat'. Las abreviaturas para los meses son `Jan', `Feb', "
278 "`Mar', `Apr', `May', `Jun', `Jul', `Aug', `Sep', `Oct', `Nov', y `Dec'. El "
279 "valor devuelto apunta a una cadena reservada estáticamente que puede ser "
280 "sobreescrita por posteriores llamadas a cualquiera de las funciones de fecha "
281 "u hora. La función también pone en la variable externa I<tzname> (véase "
282 "B<tzset>(3)) información acerca del huso horario. La versión reentrante "
283 "B<ctime_r()> hace lo mismo, pero almacena la cadena en un buffer "
284 "suministrado por el usuario de longitud mínima 26. No necesita modificar "
285 "I<tzname>."
286
287 #. type: Plain text
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 msgid ""
291 "The B<gmtime>() function converts the calendar time I<timep> to broken-down "
292 "time representation, expressed in Coordinated Universal Time (UTC). It may "
293 "return NULL when the year does not fit into an integer. The return value "
294 "points to a statically allocated struct which might be overwritten by "
295 "subsequent calls to any of the date and time functions. The B<gmtime_r>() "
296 "function does the same, but stores the data in a user-supplied struct."
297 msgstr ""
298 "La función B<gmtime>() convierte el tiempo de calendario I<timep> a una "
299 "representación descompuesta del tiempo, expresado en Tiempo Universal "
300 "Coordinado (UTC). Puede devolver NULL cuando el año no cabe en una variable "
301 "entera. El valor devuelto apunta a una estructura reservada estáticamente "
302 "que puede ser sobreescrita por llamadas posteriores a cualquiera de las "
303 "funciones de fecha y tiempo. La función B<gmtime_r>() hace lo mismo, pero "
304 "almacena los datos en una estructura suministrada por el usuario."
305
306 #. type: Plain text
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 #, fuzzy
310 msgid ""
311 "The B<localtime>() function converts the calendar time I<timep> to broken-"
312 "down time representation, expressed relative to the user's specified "
313 "timezone. The function also sets the external variables I<tzname>, "
314 "I<timezone>, and I<daylight> as if it called B<tzset>(3). The return value "
315 "points to a statically allocated struct which might be overwritten by "
316 "subsequent calls to any of the date and time functions. The "
317 "B<localtime_r>() function does the same, but stores the data in a user-"
318 "supplied struct. It need not set I<tzname>, I<timezone>, and I<daylight>."
319 msgstr ""
320 "La función B<localtime()> convierte el tiempo de calendario I<timep> a una "
321 "representación descompuesta, expresada relativa a la zona horaria "
322 "especificada por el usuario. La función actúa como si hubiera llamado a "
323 "B<tzset>(3) y pone en la variable externa I<tzname> información acerca de la "
324 "zona horaria en curso, en I<timezone> la diferencia entre el Tiempo "
325 "Universal Coordinado (UTC) y la hora local normal en segundos, y en "
326 "I<daylight> un valor distinto de cero si las reglas delcambio horario de "
327 "verano/invierno se aplican durante alguna parte del año. El valor devuelto "
328 "apunta a una estructura reservada estáticamente que puede ser sobreescrita "
329 "por llamadas posteriores a cualquiera de las funciones de fecha y tiempo. La "
330 "función B<localtime_r()> hace lo mismo, pero almacena los datos en una "
331 "estructura suministrada por el usuario."
332
333 #. type: Plain text
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 #, fuzzy
337 #| msgid ""
338 #| "The B<asctime()> function converts the broken-down time value I<tm> into "
339 #| "a string with the same format as B<ctime()>. The return value points to "
340 #| "a statically allocated string which might be overwritten by subsequent "
341 #| "calls to any of the date and time functions. The B<asctime_r()> function "
342 #| "does the same, but stores the string in a user-supplied buffer of length "
343 #| "at least 26."
344 msgid ""
345 "The B<asctime>() function converts the broken-down time value I<tm> into a "
346 "null-terminated string with the same format as B<ctime>(). The return value "
347 "points to a statically allocated string which might be overwritten by "
348 "subsequent calls to any of the date and time functions. The B<asctime_r>() "
349 "function does the same, but stores the string in a user-supplied buffer "
350 "which should have room for at least 26 bytes."
351 msgstr ""
352 "La función B<asctime()> convierte el tiempo descompuesto I<tm> a una cadena "
353 "con el mismo formato que B<ctime()>. El valor devuelto apunta a una cadena "
354 "reservada estáticamente que puede ser sobreescrita por posteriores llamadas "
355 "a cualquiera de las funciones de fecha u hora. La función B<asctime_r()> "
356 "hace lo mismo, pero almacena la cadena en un buffer suministrado por el "
357 "usuario de longitud mínima 26."
358
359 #. type: Plain text
360 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
361 #: opensuse-leap-16-1 opensuse-tumbleweed
362 msgid ""
363 "The B<mktime>() function converts a broken-down time structure, expressed "
364 "as local time, to calendar time representation. The function ignores the "
365 "values supplied by the caller in the I<tm_wday> and I<tm_yday> fields. The "
366 "value specified in the I<tm_isdst> field informs B<mktime>() whether or not "
367 "daylight saving time (DST) is in effect for the time supplied in the I<tm> "
368 "structure: a positive value means DST is in effect; zero means that DST is "
369 "not in effect; and a negative value means that B<mktime>() should (use "
370 "timezone information and system databases to) attempt to determine whether "
371 "DST is in effect at the specified time. See B<timegm>(3) for a UTC "
372 "equivalent of this function."
373 msgstr ""
374
375 #. type: Plain text
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 msgid ""
379 "The B<mktime>() function modifies the fields of the I<tm> structure as "
380 "follows: I<tm_wday> and I<tm_yday> are set to values determined from the "
381 "contents of the other fields; if structure members are outside their valid "
382 "interval, they will be normalized (so that, for example, 40 October is "
383 "changed into 9 November); I<tm_isdst> is set (regardless of its initial "
384 "value) to a positive value or to 0, respectively, to indicate whether DST "
385 "is or is not in effect at the specified time. The function also sets the "
386 "external variables I<tzname>, I<timezone>, and I<daylight> as if it called "
387 "B<tzset>(3)."
388 msgstr ""
389
390 #. type: Plain text
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 msgid ""
394 "If the specified broken-down time cannot be represented as calendar time "
395 "(seconds since the Epoch), B<mktime>() returns I<(time_t)\\ -1> and does "
396 "not alter the members of the broken-down time structure."
397 msgstr ""
398
399 #. type: SH
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 #, no-wrap
403 msgid "RETURN VALUE"
404 msgstr "VALOR DEVUELTO"
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>() and B<localtime>() return a pointer to a "
411 "I<struct\\ tm>."
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 ""
418 "On success, B<gmtime_r>() and B<localtime_r>() return the address of the "
419 "structure pointed to by I<result>."
420 msgstr ""
421
422 #. type: Plain text
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 msgid "On success, B<asctime>() and B<ctime>() return a pointer to a string."
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<asctime_r>() and B<ctime_r>() return a pointer to the string "
433 "pointed to by I<buf>."
434 msgstr ""
435
436 #. type: Plain text
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 msgid ""
440 "On success, B<mktime>() returns the calendar time (seconds since the "
441 "Epoch), expressed as a value of type I<time_t>."
442 msgstr ""
443
444 #. type: Plain text
445 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
446 #: opensuse-leap-16-1 opensuse-tumbleweed
447 msgid ""
448 "On error, B<mktime>() returns the value I<(time_t)\\ -1>, and leaves the "
449 "I<tm-E<gt>tm_wday> member unmodified. The remaining functions return NULL "
450 "on error. On error, I<errno> is set to indicate the error."
451 msgstr ""
452
453 #. type: SH
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 #, no-wrap
457 msgid "ERRORS"
458 msgstr "ERRORES"
459
460 #. type: TP
461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
463 #, no-wrap
464 msgid "B<EOVERFLOW>"
465 msgstr "B<EOVERFLOW>"
466
467 #. type: Plain text
468 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
469 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
470 msgid "The result cannot be represented."
471 msgstr "El resultado no puede ser representado."
472
473 #. type: SH
474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
476 #, no-wrap
477 msgid "ATTRIBUTES"
478 msgstr "ATRIBUTOS"
479
480 #. type: Plain text
481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
483 msgid ""
484 "For an explanation of the terms used in this section, see B<attributes>(7)."
485 msgstr ""
486 "Para obtener una explicación de los términos usados en esta sección, véase "
487 "B<attributes>(7)."
488
489 #. type: tbl table
490 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
491 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
492 #, no-wrap
493 msgid "Interface"
494 msgstr "Interfaz"
495
496 #. type: tbl table
497 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
498 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
499 #, no-wrap
500 msgid "Attribute"
501 msgstr "Atributo"
502
503 #. type: tbl table
504 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
505 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
506 #, no-wrap
507 msgid "Value"
508 msgstr "Valor"
509
510 #. type: tbl table
511 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
512 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
513 #, no-wrap
514 msgid ".na\n"
515 msgstr ".na\n"
516
517 #. type: tbl table
518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
520 #, no-wrap
521 msgid ".nh\n"
522 msgstr ".nh\n"
523
524 #. type: TP
525 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
526 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
527 #, no-wrap
528 msgid "B<asctime>()"
529 msgstr "B<asctime>()"
530
531 #. #-#-#-#-# archlinux: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
532 #. type: SS
533 #. #-#-#-#-# debian-trixie: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
534 #. type: tbl table
535 #. #-#-#-#-# debian-unstable: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
536 #. type: SS
537 #. #-#-#-#-# fedora-44: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
538 #. type: SS
539 #. #-#-#-#-# fedora-rawhide: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
540 #. type: SS
541 #. #-#-#-#-# mageia-cauldron: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
542 #. type: SS
543 #. #-#-#-#-# opensuse-leap-16-1: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
544 #. type: SS
545 #. #-#-#-#-# opensuse-tumbleweed: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
546 #. type: SS
547 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
548 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
549 #, no-wrap
550 msgid "Thread safety"
551 msgstr "Seguridad del hilo"
552
553 #. type: tbl table
554 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
555 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
556 #, fuzzy, no-wrap
557 #| msgid "MT-Safe locale"
558 msgid "MT-Unsafe race:asctime locale"
559 msgstr "Configuración regional de multi-hilo seguro"
560
561 #. type: TP
562 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
563 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
564 #, no-wrap
565 msgid "B<asctime_r>()"
566 msgstr "B<asctime_r>()"
567
568 #. type: tbl table
569 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
570 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
571 #, no-wrap
572 msgid "MT-Safe locale"
573 msgstr "Configuración regional de multi-hilo seguro"
574
575 #. type: TQ
576 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
577 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
578 #, no-wrap
579 msgid "B<ctime>()"
580 msgstr "B<ctime>()"
581
582 #. type: tbl table
583 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
584 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
585 #, fuzzy, no-wrap
586 #| msgid "MT-Safe locale"
587 msgid ""
588 "MT-Unsafe race:tmbuf\n"
589 "race:asctime env locale"
590 msgstr "Configuración regional de multi-hilo seguro"
591
592 #. type: tbl table
593 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
594 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
595 #, no-wrap
596 msgid ""
597 "B<ctime_r>(),\n"
598 "B<gmtime_r>(),\n"
599 "B<localtime_r>(),\n"
600 "B<mktime>()"
601 msgstr ""
602 "B<ctime_r>(),\n"
603 "B<gmtime_r>(),\n"
604 "B<localtime_r>(),\n"
605 "B<mktime>()"
606
607 #. type: tbl table
608 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
609 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
610 #, fuzzy, no-wrap
611 #| msgid "MT-Safe locale"
612 msgid "MT-Safe env locale"
613 msgstr "Configuración regional de multi-hilo seguro"
614
615 #. type: tbl table
616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
618 #, no-wrap
619 msgid ""
620 "B<gmtime>(),\n"
621 "B<localtime>()"
622 msgstr ""
623 "B<gmtime>(),\n"
624 "B<localtime>()"
625
626 #. type: tbl table
627 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
628 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
629 #, no-wrap
630 msgid "MT-Unsafe race:tmbuf env locale"
631 msgstr ""
632
633 #. type: SH
634 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
635 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
636 #, no-wrap
637 msgid "VERSIONS"
638 msgstr "VERSIONES"
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 "POSIX doesn't specify the parameters of B<ctime_r>() to be I<restrict>; "
645 "that is specific to glibc."
646 msgstr ""
647
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 "In many implementations, including glibc, a 0 in I<tm_mday> is interpreted "
653 "as meaning the last day of the preceding month."
654 msgstr ""
655
656 #. See http://thread.gmane.org/gmane.comp.time.tz/2034/
657 #. type: Plain text
658 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
659 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
660 msgid ""
661 "According to POSIX.1, B<localtime>() is required to behave as though "
662 "B<tzset>(3) was called, while B<localtime_r>() does not have this "
663 "requirement. For portable code, B<tzset>(3) should be called before "
664 "B<localtime_r>()."
665 msgstr ""
666
667 #. type: SH
668 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
669 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
670 #, no-wrap
671 msgid "STANDARDS"
672 msgstr "ESTÁNDARES"
673
674 #. type: TP
675 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
676 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
677 #, fuzzy, no-wrap
678 #| msgid "B<ctime>()"
679 msgid "B<gmtime>()"
680 msgstr "B<ctime>()"
681
682 #. type: TQ
683 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
684 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
685 #, fuzzy, no-wrap
686 #| msgid "B<ctime>()"
687 msgid "B<localtime>()"
688 msgstr "B<ctime>()"
689
690 #. type: TQ
691 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
692 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
693 #, fuzzy, no-wrap
694 #| msgid "B<ctime>()"
695 msgid "B<mktime>()"
696 msgstr "B<ctime>()"
697
698 #. type: Plain text
699 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
700 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
701 msgid "C23, POSIX.1-2024."
702 msgstr "C23, POSIX.1-2024."
703
704 #. type: TP
705 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
706 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
707 #, fuzzy, no-wrap
708 #| msgid "B<asctime_r>()"
709 msgid "B<gmtime_r>()"
710 msgstr "B<asctime_r>()"
711
712 #. type: TQ
713 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
714 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
715 #, fuzzy, no-wrap
716 #| msgid "B<asctime_r>()"
717 msgid "B<localtime_r>()"
718 msgstr "B<asctime_r>()"
719
720 #. type: Plain text
721 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
722 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
723 msgid "POSIX.1-2024."
724 msgstr "POSIX.1-2024."
725
726 #. type: TQ
727 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
728 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
729 #, fuzzy, no-wrap
730 #| msgid "B<asctime_r>()"
731 msgid "B<ctime_r>()"
732 msgstr "B<asctime_r>()"
733
734 #. type: Plain text
735 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
736 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
737 msgid "None."
738 msgstr ""
739
740 #. type: SH
741 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
742 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
743 #, no-wrap
744 msgid "HISTORY"
745 msgstr "HISTORIAL"
746
747 #. type: Plain text
748 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
749 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
750 #, fuzzy
751 #| msgid "C89, POSIX.1-2001."
752 msgid "C89, POSIX.1-1988."
753 msgstr "C89, POSIX.1-2001."
754
755 #. type: Plain text
756 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
757 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
758 msgid ""
759 "C89, POSIX.1-1988. Marked obsolescent in C23 and in POSIX.1-2008 "
760 "(recommending B<strftime>(3))."
761 msgstr ""
762
763 #. type: Plain text
764 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
765 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
766 #, fuzzy
767 #| msgid "POSIX.1-2001, C99."
768 msgid "POSIX.1-1996."
769 msgstr "POSIX.1-2001, C99."
770
771 #. type: Plain text
772 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
773 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
774 msgid ""
775 "POSIX.1-1996. Marked obsolescent in POSIX.1-2008. Removed in POSIX.1-2024 "
776 "(recommending B<strftime>(3))."
777 msgstr ""
778
779 #. type: SH
780 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
781 #: opensuse-leap-16-1 opensuse-tumbleweed
782 #, no-wrap
783 msgid "CAVEATS"
784 msgstr ""
785
786 #. type: Plain text
787 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
788 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
789 msgid ""
790 "The four functions B<asctime>(), B<ctime>(), B<gmtime>(), and "
791 "B<localtime>() return a pointer to static data and hence are not thread-"
792 "safe. The thread-safe versions, B<asctime_r>(), B<ctime_r>(), "
793 "B<gmtime_r>(), and B<localtime_r>(), are specified by SUSv2."
794 msgstr ""
795 "Las cuatro funciones B<acstime>(), B<ctime>(), B<gmtime>() y B<localtime>() "
796 "devuelven un puntero a datos estáticos y por tanto no son seguras para "
797 "trabajar con hilos. Las versiones hilo-seguro B<acstime_r>(), B<ctime_r>(), "
798 "B<gmtime_r>() y B<localtime_r>() están especificadas por SUSv2."
799
800 #. type: Plain text
801 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
802 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
803 msgid ""
804 "POSIX.1 says: \"The B<asctime>(), B<ctime>(), B<gmtime>(), and "
805 "B<localtime>() functions shall return values in one of two static objects: "
806 "a broken-down time structure and an array of type I<char>. Execution of any "
807 "of the functions that return a pointer to one of these object types may "
808 "overwrite the information in any object of the same type pointed to by the "
809 "value returned from any previous call to any of them.\" This can occur in "
810 "the glibc implementation."
811 msgstr ""
812
813 #. type: SS
814 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
815 #: opensuse-leap-16-1 opensuse-tumbleweed
816 #, fuzzy, no-wrap
817 #| msgid "B<ctime>()"
818 msgid "mktime()"
819 msgstr "B<ctime>()"
820
821 #. type: Plain text
822 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
823 #: opensuse-leap-16-1 opensuse-tumbleweed
824 msgid ""
825 "I<(time_t) -1> can represent a valid time (one second before the Epoch). To "
826 "determine whether B<mktime>() failed, one must use the I<tm-E<gt>tm_wday> "
827 "field. See the example program in EXAMPLES."
828 msgstr ""
829
830 #. type: Plain text
831 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
832 #: opensuse-leap-16-1 opensuse-tumbleweed
833 msgid ""
834 "The handling of a non-negative I<tm_isdst> in B<mktime>() is poorly "
835 "specified, and passing a value that is incorrect for the time specified "
836 "yields unspecified results. Since B<mktime>() is one of the few functions "
837 "that knows when DST is in effect, providing a correct value may be "
838 "difficult. One workaround for this is to call B<mktime>() twice, once with "
839 "I<tm_isdst> set to zero, and once with I<tm_isdst> set to a positive value, "
840 "and discarding the results from the call that changes it. If neither call "
841 "changes I<tm_isdst> then the time specified probably happens during a fall-"
842 "back period where DST begins or ends, and both results are valid but "
843 "represent two different times. If both calls change it, that could indicate "
844 "a fall-forward transition, or some other reason why the time specified does "
845 "not exist."
846 msgstr ""
847
848 #. type: Plain text
849 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
850 #: opensuse-leap-16-1 opensuse-tumbleweed
851 msgid ""
852 "The specification of time zones and daylight saving time are up to regional "
853 "governments, change often, and may include discontinuities beyond "
854 "I<mktime>'s ability to document a result. For example, a change in the "
855 "timezone definition may cause a clock time to be repeated or skipped without "
856 "a corresponding DST change."
857 msgstr ""
858
859 #. type: SH
860 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
861 #: opensuse-leap-16-1 opensuse-tumbleweed
862 #, no-wrap
863 msgid "EXAMPLES"
864 msgstr "EJEMPLOS"
865
866 #. type: Plain text
867 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
868 #: opensuse-leap-16-1 opensuse-tumbleweed
869 msgid ""
870 "The program below defines a wrapper that allows detecting invalid and "
871 "ambiguous times, with B<EINVAL> and B<ENOTUNIQ>, respectively."
872 msgstr ""
873
874 #. type: Plain text
875 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
876 #: opensuse-leap-16-1 opensuse-tumbleweed
877 msgid "The following shell session shows sample runs of the program:"
878 msgstr ""
879
880 #. type: Plain text
881 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
882 #: opensuse-leap-16-1 opensuse-tumbleweed
883 #, no-wrap
884 msgid ""
885 "$\\ B<TZ=UTC ./a.out 1969 12 31 23 59 59 0>;\n"
886 "-1\n"
887 "$\n"
888 "$\\ B<export TZ=Europe/Madrid>;\n"
889 "$\n"
890 "$\\ B<./a.out 2147483647 2147483647 00 00 00 00 -1>;\n"
891 "a.out: mktime: Value too large for defined data type\n"
892 "$\n"
893 "$\\ B<./a.out 2024 08 23 00 17 53 -1>;\n"
894 "1724365073\n"
895 "$\\ B<./a.out 2024 08 23 00 17 53 0>;\n"
896 "a.out: my_mktime: Invalid argument\n"
897 "1724368673\n"
898 "$\\ B<./a.out 2024 08 23 00 17 53 1>;\n"
899 "1724365073\n"
900 "$\n"
901 "$\\ B<./a.out 2024 02 23 00 17 53 -1>;\n"
902 "1708643873\n"
903 "$\\ B<./a.out 2024 02 23 00 17 53 0>;\n"
904 "1708643873\n"
905 "$\\ B<./a.out 2024 02 23 00 17 53 1>;\n"
906 "a.out: my_mktime: Invalid argument\n"
907 "1708640273\n"
908 "$\n"
909 "$\\ B<./a.out 2023 03 26 02 17 53 -1>;\n"
910 "a.out: my_mktime: Invalid argument\n"
911 "1679793473\n"
912 "$\n"
913 "$\\ B<./a.out 2023 10 29 02 17 53 -1>;\n"
914 "a.out: my_mktime: Name not unique on network\n"
915 "1698542273\n"
916 "$\\ B<./a.out 2023 10 29 02 17 53 0>;\n"
917 "1698542273\n"
918 "$\\ B<./a.out 2023 10 29 02 17 53 1>;\n"
919 "1698538673\n"
920 "$\n"
921 "$\\ B<./a.out 2023 02 29 12 00 00 -1>;\n"
922 "a.out: my_mktime: Invalid argument\n"
923 "1677668400\n"
924 msgstr ""
925
926 #. type: SS
927 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
928 #: opensuse-leap-16-1 opensuse-tumbleweed
929 #, fuzzy, no-wrap
930 #| msgid "Program source"
931 msgid "Program source: mktime.c"
932 msgstr "Código fuente"
933
934 #. type: Plain text
935 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
936 #: opensuse-tumbleweed
937 #, no-wrap
938 msgid ""
939 "#include E<lt>err.hE<gt>\n"
940 "#include E<lt>errno.hE<gt>\n"
941 "#include E<lt>stdint.hE<gt>\n"
942 "#include E<lt>stdio.hE<gt>\n"
943 "#include E<lt>stdlib.hE<gt>\n"
944 "#include E<lt>string.hE<gt>\n"
945 "#include E<lt>time.hE<gt>\n"
946 "\\&\n"
947 "#define is_signed(T) ((T) -1 E<lt> 1)\n"
948 "\\&\n"
949 "static time_t my_mktime(struct tm *tp);\n"
950 "\\&\n"
951 "int\n"
952 "main(int argc, char *argv[])\n"
953 "{\n"
954 " char **p;\n"
955 " time_t t;\n"
956 " struct tm tm;\n"
957 "\\&\n"
958 " if (argc != 8) {\n"
959 " fprintf(stderr, \"Usage: %s yyyy mm dd HH MM SS isdst\\[rs]n\", argv[0]);\n"
960 " exit(EXIT_FAILURE);\n"
961 " }\n"
962 "\\&\n"
963 " p = &argv[1];\n"
964 " tm.tm_year = atoi(*p++) - 1900;\n"
965 " tm.tm_mon = atoi(*p++) - 1;\n"
966 " tm.tm_mday = atoi(*p++);\n"
967 " tm.tm_hour = atoi(*p++);\n"
968 " tm.tm_min = atoi(*p++);\n"
969 " tm.tm_sec = atoi(*p++);\n"
970 " tm.tm_isdst = atoi(*p++);\n"
971 "\\&\n"
972 " errno = 0;\n"
973 " tm.tm_wday = -1;\n"
974 " t = my_mktime(&tm);\n"
975 " if (tm.tm_wday == -1)\n"
976 " err(EXIT_FAILURE, \"mktime\");\n"
977 " if (errno == EINVAL || errno == ENOTUNIQ)\n"
978 " warn(\"my_mktime\");\n"
979 "\\&\n"
980 " if (is_signed(time_t))\n"
981 " printf(\"%jd\\[rs]n\", (intmax_t) t);\n"
982 " else\n"
983 " printf(\"%ju\\[rs]n\", (uintmax_t) t);\n"
984 "\\&\n"
985 " exit(EXIT_SUCCESS);\n"
986 "}\n"
987 "\\&\n"
988 "static time_t\n"
989 "my_mktime(struct tm *tp)\n"
990 "{\n"
991 " int e, isdst;\n"
992 " time_t t;\n"
993 " struct tm tm;\n"
994 " unsigned char wday[sizeof(tp-E<gt>tm_wday)];\n"
995 "\\&\n"
996 " e = errno;\n"
997 "\\&\n"
998 " tm = *tp;\n"
999 " isdst = tp-E<gt>tm_isdst;\n"
1000 "\\&\n"
1001 " memcpy(wday, &tp-E<gt>tm_wday, sizeof(wday));\n"
1002 " tp-E<gt>tm_wday = -1;\n"
1003 " t = mktime(tp);\n"
1004 " if (tp-E<gt>tm_wday == -1) {\n"
1005 " memcpy(&tp-E<gt>tm_wday, wday, sizeof(wday));\n"
1006 " return -1;\n"
1007 " }\n"
1008 "\\&\n"
1009 " if (isdst == -1)\n"
1010 " tm.tm_isdst = tp-E<gt>tm_isdst;\n"
1011 "\\&\n"
1012 " if ( tm.tm_sec != tp-E<gt>tm_sec\n"
1013 " || tm.tm_min != tp-E<gt>tm_min\n"
1014 " || tm.tm_hour != tp-E<gt>tm_hour\n"
1015 " || tm.tm_mday != tp-E<gt>tm_mday\n"
1016 " || tm.tm_mon != tp-E<gt>tm_mon\n"
1017 " || tm.tm_year != tp-E<gt>tm_year\n"
1018 " || tm.tm_isdst != tp-E<gt>tm_isdst)\n"
1019 " {\n"
1020 " errno = EINVAL;\n"
1021 " return t;\n"
1022 " }\n"
1023 "\\&\n"
1024 " if (isdst != -1)\n"
1025 " goto out;\n"
1026 "\\&\n"
1027 " tm = *tp;\n"
1028 " tm.tm_isdst = !tm.tm_isdst;\n"
1029 "\\&\n"
1030 " tm.tm_wday = -1;\n"
1031 " mktime(&tm);\n"
1032 " if (tm.tm_wday == -1)\n"
1033 " goto out;\n"
1034 "\\&\n"
1035 " if (tm.tm_isdst != tp-E<gt>tm_isdst) {\n"
1036 " errno = ENOTUNIQ;\n"
1037 " return t;\n"
1038 " }\n"
1039 "out:\n"
1040 " errno = e;\n"
1041 " return t;\n"
1042 "}\n"
1043 msgstr ""
1044
1045 #. #-#-#-#-# archlinux: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1046 #. SRC END
1047 #. type: SH
1048 #. #-#-#-#-# debian-trixie: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1049 #. type: SH
1050 #. #-#-#-#-# debian-unstable: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1051 #. SRC END
1052 #. type: SH
1053 #. #-#-#-#-# fedora-44: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1054 #. SRC END
1055 #. type: SH
1056 #. #-#-#-#-# fedora-rawhide: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1057 #. SRC END
1058 #. type: SH
1059 #. #-#-#-#-# mageia-cauldron: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1060 #. SRC END
1061 #. type: SH
1062 #. #-#-#-#-# opensuse-leap-16-1: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1063 #. SRC END
1064 #. type: SH
1065 #. #-#-#-#-# opensuse-tumbleweed: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1066 #. SRC END
1067 #. type: SH
1068 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1069 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1070 #, no-wrap
1071 msgid "SEE ALSO"
1072 msgstr "VÉASE TAMBIÉN"
1073
1074 #. type: Plain text
1075 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1076 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1077 msgid ""
1078 "B<date>(1), B<gettimeofday>(2), B<time>(2), B<utime>(2), B<clock>(3), "
1079 "B<difftime>(3), B<strftime>(3), B<strptime>(3), B<timegm>(3), B<tzset>(3), "
1080 "B<time>(7)"
1081 msgstr ""
1082 "B<date>(1), B<gettimeofday>(2), B<time>(2), B<utime>(2), B<clock>(3), "
1083 "B<difftime>(3), B<strftime>(3), B<strptime>(3), B<timegm>(3), B<tzset>(3), "
1084 "B<time>(7)"
1085
1086 #. type: TH
1087 #: debian-trixie
1088 #, no-wrap
1089 msgid "2024-06-15"
1090 msgstr "15 Junio 2024"
1091
1092 #. type: TH
1093 #: debian-trixie
1094 #, no-wrap
1095 msgid "Linux man-pages 6.9.1"
1096 msgstr "Páginas de Manual de Linux 6.9.1"
1097
1098 #. type: Plain text
1099 #: debian-trixie
1100 msgid "Standard C library (I<libc>, I<-lc>)"
1101 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
1102
1103 #. type: Plain text
1104 #: debian-trixie fedora-44 fedora-rawhide
1105 #, fuzzy
1106 #| msgid ""
1107 #| "The call B<ctime(>I<t>B<)> is equivalent to "
1108 #| "B<asctime(localtime(>I<t>B<))>. It converts the calendar time I<t> into "
1109 #| "a string of the form"
1110 msgid ""
1111 "The call B<ctime(>I<t>B<)> is equivalent to B<asctime(localtime(>I<t>B<))>. "
1112 "It converts the calendar time I<t> into a null-terminated string of the form"
1113 msgstr ""
1114 "La llamada B<ctime(>I<t>B<)> es equivalente a B<asctime(localtime(I<t>B<))>. "
1115 "Convierte el tiempo de calendario I<t> a una cadena de la forma"
1116
1117 #. type: Plain text
1118 #: debian-trixie
1119 msgid ""
1120 "The B<mktime>() function converts a broken-down time structure, expressed "
1121 "as local time, to calendar time representation. The function ignores the "
1122 "values supplied by the caller in the I<tm_wday> and I<tm_yday> fields. The "
1123 "value specified in the I<tm_isdst> field informs B<mktime>() whether or not "
1124 "daylight saving time (DST) is in effect for the time supplied in the I<tm> "
1125 "structure: a positive value means DST is in effect; zero means that DST is "
1126 "not in effect; and a negative value means that B<mktime>() should (use "
1127 "timezone information and system databases to) attempt to determine whether "
1128 "DST is in effect at the specified time."
1129 msgstr ""
1130
1131 #. type: Plain text
1132 #: debian-trixie
1133 msgid ""
1134 "On error, B<mktime>() returns the value I<(time_t)\\ -1>. The remaining "
1135 "functions return NULL on error. On error, I<errno> is set to indicate the "
1136 "error."
1137 msgstr ""
1138
1139 #. type: SH
1140 #: debian-trixie
1141 #, no-wrap
1142 msgid "NOTES"
1143 msgstr "NOTAS"
1144
1145 #. type: TH
1146 #: fedora-44 fedora-rawhide
1147 #, no-wrap
1148 msgid "2025-02-18"
1149 msgstr "18 Febrero 2025"
1150
1151 #. type: TH
1152 #: fedora-44 fedora-rawhide
1153 #, no-wrap
1154 msgid "Linux man-pages 6.13"
1155 msgstr "Páginas de Manual de Linux 6.13"
1156
1157 #. type: Plain text
1158 #: fedora-44 fedora-rawhide
1159 #, no-wrap
1160 msgid ""
1161 "#include E<lt>err.hE<gt>\n"
1162 "#include E<lt>errno.hE<gt>\n"
1163 "#include E<lt>stdint.hE<gt>\n"
1164 "#include E<lt>stdio.hE<gt>\n"
1165 "#include E<lt>stdlib.hE<gt>\n"
1166 "#include E<lt>string.hE<gt>\n"
1167 "#include E<lt>time.hE<gt>\n"
1168 "\\&\n"
1169 "#define is_signed(T) ((T) -1 E<lt> 1)\n"
1170 "\\&\n"
1171 "time_t my_mktime(struct tm *tp);\n"
1172 "\\&\n"
1173 "int\n"
1174 "main(int argc, char *argv[])\n"
1175 "{\n"
1176 " char **p;\n"
1177 " time_t t;\n"
1178 " struct tm tm;\n"
1179 "\\&\n"
1180 " if (argc != 8) {\n"
1181 " fprintf(stderr, \"Usage: %s yyyy mm dd HH MM SS isdst\\[rs]n\", argv[0]);\n"
1182 " exit(EXIT_FAILURE);\n"
1183 " }\n"
1184 "\\&\n"
1185 " p = &argv[1];\n"
1186 " tm.tm_year = atoi(*p++) - 1900;\n"
1187 " tm.tm_mon = atoi(*p++) - 1;\n"
1188 " tm.tm_mday = atoi(*p++);\n"
1189 " tm.tm_hour = atoi(*p++);\n"
1190 " tm.tm_min = atoi(*p++);\n"
1191 " tm.tm_sec = atoi(*p++);\n"
1192 " tm.tm_isdst = atoi(*p++);\n"
1193 "\\&\n"
1194 " errno = 0;\n"
1195 " tm.tm_wday = -1;\n"
1196 " t = my_mktime(&tm);\n"
1197 " if (tm.tm_wday == -1)\n"
1198 " err(EXIT_FAILURE, \"mktime\");\n"
1199 " if (errno == EINVAL || errno == ENOTUNIQ)\n"
1200 " warn(\"my_mktime\");\n"
1201 "\\&\n"
1202 " if (is_signed(time_t))\n"
1203 " printf(\"%jd\\[rs]n\", (intmax_t) t);\n"
1204 " else\n"
1205 " printf(\"%ju\\[rs]n\", (uintmax_t) t);\n"
1206 "\\&\n"
1207 " exit(EXIT_SUCCESS);\n"
1208 "}\n"
1209 "\\&\n"
1210 "time_t\n"
1211 "my_mktime(struct tm *tp)\n"
1212 "{\n"
1213 " int e, isdst;\n"
1214 " time_t t;\n"
1215 " struct tm tm;\n"
1216 " unsigned char wday[sizeof(tp-E<gt>tm_wday)];\n"
1217 "\\&\n"
1218 " e = errno;\n"
1219 "\\&\n"
1220 " tm = *tp;\n"
1221 " isdst = tp-E<gt>tm_isdst;\n"
1222 "\\&\n"
1223 " memcpy(wday, &tp-E<gt>tm_wday, sizeof(wday));\n"
1224 " tp-E<gt>tm_wday = -1;\n"
1225 " t = mktime(tp);\n"
1226 " if (tp-E<gt>tm_wday == -1) {\n"
1227 " memcpy(&tp-E<gt>tm_wday, wday, sizeof(wday));\n"
1228 " return -1;\n"
1229 " }\n"
1230 "\\&\n"
1231 " if (isdst == -1)\n"
1232 " tm.tm_isdst = tp-E<gt>tm_isdst;\n"
1233 "\\&\n"
1234 " if ( tm.tm_sec != tp-E<gt>tm_sec\n"
1235 " || tm.tm_min != tp-E<gt>tm_min\n"
1236 " || tm.tm_hour != tp-E<gt>tm_hour\n"
1237 " || tm.tm_mday != tp-E<gt>tm_mday\n"
1238 " || tm.tm_mon != tp-E<gt>tm_mon\n"
1239 " || tm.tm_year != tp-E<gt>tm_year\n"
1240 " || tm.tm_isdst != tp-E<gt>tm_isdst)\n"
1241 " {\n"
1242 " errno = EINVAL;\n"
1243 " return t;\n"
1244 " }\n"
1245 "\\&\n"
1246 " if (isdst != -1)\n"
1247 " goto out;\n"
1248 "\\&\n"
1249 " tm = *tp;\n"
1250 " tm.tm_isdst = !tm.tm_isdst;\n"
1251 "\\&\n"
1252 " tm.tm_wday = -1;\n"
1253 " mktime(&tm);\n"
1254 " if (tm.tm_wday == -1)\n"
1255 " goto out;\n"
1256 "\\&\n"
1257 " if (tm.tm_isdst != tp-E<gt>tm_isdst) {\n"
1258 " errno = ENOTUNIQ;\n"
1259 " return t;\n"
1260 " }\n"
1261 "out:\n"
1262 " errno = e;\n"
1263 " return t;\n"
1264 "}\n"
1265 msgstr ""
1266
1267 #. type: TH
1268 #: mageia-cauldron
1269 #, no-wrap
1270 msgid "Linux man-pages 6.17"
1271 msgstr "Páginas de Manual de Linux 6.17"
1272
1273 #. type: TH
1274 #: opensuse-leap-16-1 opensuse-tumbleweed
1275 #, no-wrap
1276 msgid "Linux man-pages (unreleased)"
1277 msgstr "Páginas de Manual de Linux (no publicadas)"