1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one
.\"
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date. The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein. The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" Modified by Michael Haardt <u31b3hs@pool.informatik.rwth-aachen.de>
.\" Modified Sat Jul 24 14:13:40 1993 by Rik Faith <faith@cs.unc.edu>
.\" Additions by Joseph S. Myers <jsm28@cam.ac.uk>, 970909
.\" Translated into Spanish Fri Feb 6 1998 by Gerardo Aburruzaga
.\" Garca <gerardo.aburruzaga@uca.es>
.\" Translation revised April 27 1998 by Juan Piernas <piernas@dif.um.es>
.\"
.TH TIME 2 "9 Septiembre 1997" "Linux 2.0.30" "Manual del Programador de Linux"
.SH NOMBRE
time \- obtiene el tiempo de calendario, en segundos
.SH SINOPSIS
.B #include <time.h>
.sp
.BI "time_t time(time_t *" t );
.SH DESCRIPCIN
\fBtime\fP devuelve el tiempo transcurrido, medido en segundos, desde
`la poca': las 0 horas 0 minutos 0 segundos, tiempo universal
coordinado, del 1 de Enero de 1970. Esta medida se llama
el ``tiempo de calendario''.
Si
.I t
no es el puntero nulo,
el valor devuelto tambin se guarda en la zona de memoria a la que apunte
.IR t .
.SH "VALOR DEVUELTO"
En caso de xito se devuelve el tiempo transcurrido, en segundos, desde la
poca. En caso de error, se devuelve ((time_t)\-1) y se asigna a la variable
\fIerrno\fP un valor apropiado.
.SH ERRORES
.TP 0.8i
.B EFAULT
.I t
apunta fuera de su espacio de direcciones accesible.
.SH OBSERVACIONES
POSIX.1 define el valor
.I segundos desde la poca
como el nmero de segundos transcurridos entre un instante
especfico y la poca, calculados a partir del Tiempo Coordinado Universal
(UTC) segn una frmula que simplifica la conversin ignorando los segundos
de salto y suponiendo que todos los aos divisibles por 4 son bisiestos.
Este valor no es el mismo que el nmero real de segundos transcurrido entre
dicho instante y la poca debido a los segundos de salto y debido a que no se
requiere que los relojes estn sincronizados con una referencia estndar. La
intencin es que la interpretacin de los valores
.I segundos desde la poca
sea consistente; vea POSIX.1 Anexo B 2.2.2 para una explicacin ms amplia.
.SH "CONFORME A"
SVr4, SVID, POSIX, X/OPEN, BSD 4.3 y C ANSI.
.br
Bajo BSD 4.3, esta llamada se considera anticuada, pues se tiene
.BR gettimeofday (2),
que proporciona un resultado ms preciso.
POSIX no especifica ninguna condicin de error.
.SH "VASE TAMBIN"
.BR ctime "(3), " date "(1), " ftime "(3), " gettimeofday (2)
|