Provided by: manpages-es-dev_4.27.0-1_all bug

NOMBRE

       timegm, timelocal - funciones inversas para gmtime y localtime

BIBLIOTECA

       Biblioteca Estándar C (libc, -lc)

SINOPSIS

       #include <time.h>

       [[deprecated]] time_t timelocal(struct tm *tm);
       time_t timegm(struct tm *tm);

   Requisitos de Macros de Prueba de Características para glibc (véase feature_test_macros(7)):

       timelocal(), timegm():
           A partir de glibc 2.19:
               _DEFAULT_SOURCE
           Anteriores a glibc 2.19:
               _BSD_SOURCE || _SVID_SOURCE

DESCRIPCIÓN

       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 explicación de los términos usados en esta sección, véase attributes(7).
       ┌─────────────────────────────────────────────────────────────┬────────────────────┬────────────────────┐
       │ InterfazAtributoValor              │
       ├─────────────────────────────────────────────────────────────┼────────────────────┼────────────────────┤
       │ timelocal(), timegm()                                       │ Seguridad del hilo │ MT-Safe env locale │
       └─────────────────────────────────────────────────────────────┴────────────────────┴────────────────────┘

ESTÁNDARES

       BSD.

HISTORIAL

       GNU, BSD.

       La  función  timelocal()  es  equivalente  a  la función del estándar POSIX mktime(3).  No hay razón para
       usarla.

VÉASE TAMBIÉN

       gmtime(3), localtime(3), mktime(3), tzset(3)

TRADUCCIÓN

       La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars <mpi79470@alu.um.es>
       y Marcos Fouces <marcos@debian.org>

       Esta traducción es documentación libre;  lea  la  GNU General Public License Version 3  o  posterior  con
       respecto a las condiciones de copyright.  No existe NINGUNA RESPONSABILIDAD.

       Si  encuentra  algún  error  en  la  traducción  de esta página del manual, envíe un correo electrónico a
       debian-l10n-spanish@lists.debian.org.

Páginas de Manual de Linux 6.9.1                   2 Mayo 2024                                         timegm(3)