Man page - timegm(3)

Packages contains this manual

Available languages:

en fr es ja ru ro de

Manual

timegm

NOMBRE
BIBLIOTECA
SINOPSIS
DESCRIPCIÓN
VALOR DEVUELTO
ERRORES
ATRIBUTOS
ESTÁNDARES
HISTORIAL
VÉASE TAMBIÉN
TRADUCCIÓN

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).

Image grohtml-3950740-1.png

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 .