ftime(3) Library Functions Manual ftime(3) NOMBRE ftime - devuelve fecha y hora BIBLIOTECA Biblioteca Estandar C (libc, -lc) SINOPSIS #include int ftime(struct timeb *tp); DESCRIPCION NOTA: la biblioteca GNU C ya no incluye esta funcion. Emplee clock_gettime(2) en su lugar. 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 tp, which is declared as follows: struct timeb { time_t time; unsigned short millitm; short timezone; short dstflag; }; Here time is the number of seconds since the Epoch, and millitm is the number of milliseconds since time seconds since the Epoch. The timezone field is the local timezone measured in minutes of time west of Greenwich (with a negative value indicating minutes east of Greenwich). The dstflag field is a flag that, if nonzero, indicates that Daylight Saving time applies locally during the appropriate part of the year. POSIX.1-2001 says that the contents of the timezone and dstflag fields are unspecified; avoid relying on them. VALOR DEVUELTO This function always returns 0. (POSIX.1-2001 specifies, and some systems document, a -1 error return.) ATRIBUTOS Para obtener una explicacion de los terminos usados en esta seccion, vease attributes(7). +-----------------------------+--------------------+-------------------+ |Interfaz | Atributo | Valor | +-----------------------------+--------------------+-------------------+ |ftime() | Seguridad del hilo | Multi-hilo seguro | +-----------------------------+--------------------+-------------------+ ESTANDARES None. HISTORIAL Removed in glibc 2.33. 4.2BSD, POSIX.1-2001. Removed in POSIX.1-2008. Esta funcion esta obsoleta. No la utilice. Si es suficiente con el tiempo en segundos, puede usarse time(2), gettimeofday(2) da el tiempo en microsegundos; clock_gettime(3) da el tiempo en nanosegundos aunque no esta disponible todavia en muchos sistemas. ERRORES Las primeras versiones de glibc2 contienen varios fallos y devuelven o en el campo millitm. Esta se subsano en glibc 2.1.1. VEASE TAMBIEN gettimeofday(2), time(2) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Gerardo Aburruzaga Garcia , Juan Piernas , 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 ftime(3)