timegm(3) Library Functions Manual timegm(3) NOMBRE timegm, timelocal - funciones inversas para gmtime y localtime BIBLIOTECA Biblioteca Estandar C (libc, -lc) SINOPSIS #include [[deprecated]] time_t timelocal(struct tm *tm); time_t timegm(struct tm *tm); Requisitos de Macros de Prueba de Caracteristicas para glibc (vease feature_test_macros(7)): timelocal(), timegm(): A partir de glibc 2.19: _DEFAULT_SOURCE Anteriores a glibc 2.19: _BSD_SOURCE || _SVID_SOURCE DESCRIPCION The functions timelocal() and timegm() are the inverses of localtime(3) and gmtime(3). Both functions take a broken-down time and convert it to calendar time (seconds since the Epoch, 1970-01-01 00:00:00 +0000, UTC). The difference between the two functions is that timelocal() takes the local timezone into account when doing the conversion, while timegm() takes the input value to be Coordinated Universal Time (UTC). VALOR DEVUELTO On success, these functions return the calendar time (seconds since the Epoch), expressed as a value of type time_t. On error, they return the value (time_t) -1 and set errno to indicate the error. ERRORES EOVERFLOW El resultado no puede ser representado. ATRIBUTOS Para obtener una explicacion de los terminos usados en esta seccion, vease attributes(7). +----------------------------+--------------------+--------------------+ |Interfaz | Atributo | Valor | +----------------------------+--------------------+--------------------+ |timelocal(), timegm() | Seguridad del hilo | MT-Safe env locale | +----------------------------+--------------------+--------------------+ ESTANDARES BSD. HISTORIAL GNU, BSD. La funcion timelocal() es equivalente a la funcion del estandar POSIX mktime(3). No hay razon para usarla. VEASE TAMBIEN gmtime(3), localtime(3), mktime(3), tzset(3) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Miguel Perez Ibars y Marcos Fouces Esta traduccion es documentacion libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algun error en la traduccion de esta pagina del manual, envie un correo electronico a . Paginas de manual de Linux 6.06 31 Octubre 2023 timegm(3)