.\" -*- coding: UTF-8 -*- '\" t .\" Copyright (c) 1993 Michael Haardt .\" (michael@moria.de) .\" Fri Apr 2 11:32:09 MET DST 1993 .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" .\" Modified Sat Jul 24 14:23:14 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified Sun Oct 18 17:31:43 1998 by Andries Brouwer (aeb@cwi.nl) .\" 2008-06-23, mtk, minor rewrites, added some details .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH ftime 3 "31 Octubre 2023" "Páginas de manual de Linux 6.06" .SH NOMBRE ftime \- devuelve fecha y hora .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .P \fBint ftime(struct timeb *\fP\fItp\fP\fB);\fP .fi .SH DESCRIPCIÓN \fBNOTA\fP: la biblioteca GNU C ya no incluye esta función. Emplee \fBclock_gettime\fP(2) en su lugar. .P This function returns the current time as seconds and milliseconds since the Epoch, 1970\-01\-01 00:00:00 +0000 (UTC). The time is returned in \fItp\fP, which is declared as follows: .P .in +4n .EX struct timeb { time_t time; unsigned short millitm; short timezone; short dstflag; }; .EE .in .P Here \fItime\fP is the number of seconds since the Epoch, and \fImillitm\fP is the number of milliseconds since \fItime\fP seconds since the Epoch. The \fItimezone\fP field is the local timezone measured in minutes of time west of Greenwich (with a negative value indicating minutes east of Greenwich). The \fIdstflag\fP field is a flag that, if nonzero, indicates that Daylight Saving time applies locally during the appropriate part of the year. .P POSIX.1\-2001 says that the contents of the \fItimezone\fP and \fIdstflag\fP fields are unspecified; avoid relying on them. .SH "VALOR DEVUELTO" This function always returns 0. (POSIX.1\-2001 specifies, and some systems document, a \-1 error return.) .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 \fBftime\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .SH ESTÁNDARES None. .SH HISTORIAL Removed in glibc 2.33. 4.2BSD, POSIX.1\-2001. Removed in POSIX.1\-2008. .P Esta función está obsoleta. No la utilice. Si es suficiente con el tiempo en segundos, puede usarse \fBtime\fP(2), \fBgettimeofday\fP(2) da el tiempo en microsegundos; \fBclock_gettime\fP(3) da el tiempo en nanosegundos aunque no está disponible todavía en muchos sistemas. .SH ERRORES .\" .SH HISTORY .\" The .\" .BR ftime () .\" function appeared in 4.2BSD. Las primeras versiones de glibc2 contienen varios fallos y devuelven o en el campo \fImillitm\fP. Esta se subsanó en glibc 2.1.1. .SH "VÉASE TAMBIÉN" \fBgettimeofday\fP(2), \fBtime\fP(2) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García , Juan Piernas , 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 .