.\" -*- coding: UTF-8 -*- '\" t .\" Copyright (C) 2001 Andries Brouwer .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH timegm 3 "20 ​​Julio 2023" "Páginas de manual de Linux 6.05.01" .SH NOMBRE timegm, timelocal \- funciones inversas para gmtime y localtime .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .PP \fB[[deprecated]] time_t timelocal(struct tm *\fP\fItm\fP\fB);\fP \fBtime_t timegm(struct tm *\fP\fItm\fP\fB);\fP .PP .fi .RS -4 Requisitos de Macros de Prueba de Características para glibc (véase \fBfeature_test_macros\fP(7)): .RE .PP \fBtimelocal\fP(), \fBtimegm\fP(): .nf A partir de glibc 2.19: _DEFAULT_SOURCE Anteriores a glibc 2.19: _BSD_SOURCE || _SVID_SOURCE .fi .SH DESCRIPCIÓN The functions \fBtimelocal\fP() and \fBtimegm\fP() are the inverses of \fBlocaltime\fP(3) and \fBgmtime\fP(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 \fBtimelocal\fP() takes the local timezone into account when doing the conversion, while \fBtimegm\fP() takes the input value to be Coordinated Universal Time (UTC). .SH "VALOR DEVUELTO" On success, these functions return the calendar time (seconds since the Epoch), expressed as a value of type \fItime_t\fP. On error, they return the value \fI(time_t)\ \-1\fP and set \fIerrno\fP to indicate the error. .SH ERRORES .TP \fBEOVERFLOW\fP El resultado no puede ser representado. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ .na .nh \fBtimelocal\fP(), \fBtimegm\fP() T} Seguridad del hilo MT\-Safe env locale .TE .sp 1 .SH ESTÁNDARES BSD. .SH HISTORIAL GNU, BSD. .PP La función \fBtimelocal\fP() es equivalente a la función del estándar POSIX \fBmktime\fP(3). No hay razón para usarla. .SH "VÉASE TAMBIÉN" \fBgmtime\fP(3), \fBlocaltime\fP(3), \fBmktime\fP(3), \fBtzset\fP(3) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars y Marcos Fouces . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .