.\" -*- nroff -*- .\" .\" 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 .\" Modified Sat Jul 24 14:13:40 1993 by Rik Faith .\" Additions by Joseph S. Myers , 970909 .\" .TH TIME 2 "09/09/1997" "Linux 2.0.30" "Manual do Programador Linux" .SH NOME time \- obtém o tempo em segundos .SH SINOPSE .B #include .sp .BI "time_t time(time_t *" t ); .SH DESCRIÇÃO \fBtime\fP retorna o tempo desde a Era (1 de Janeiro de 1970 às 00:00:00 UTC), medido em segundos. Se .I t não é nulo, o valor devolvido é armazenado, também, na memória apontado por .IR t . .SH "VALORES RETORNADOS" Em caso de successo, o valor do tempo em segundo é retornado. Caso contrário, ((time_t)\-1) é retornado, e \fIerrno\fP é selecionado adequadamente. .SH ERROS .TP .B EFAULT .I t aponta para fora de seu espaço de endereço acessível. .SH NOTAS POSIX.1 define .I segundo desde a Época como um valor para ser interpretado como o número de segundos entre um tempo especificado e a Época, de acordo com uma fórmula para conversão a partir de UTC equivalente para conversão na base nativa que pula os segundos são ignorados e todos os anos divisíveis por 4 são anos pulados. Este valor não é igual ao número atual de segundos entre o tempo e a Época, por causa dos segundo pulados e por causa dos relógios que não são requeridos para ser sincronizados para uma referência padrão. A intenção é que a interpretação de segundos entre o valor Época é consistente; veja POSIX.1 Anexo B 2.2.2 para mais argumentos. .SH "DE ACORDO COM" SVr4, SVID, POSIX, X/OPEN, BSD 4.3 .br No BSD 4.3, esta chamada é obsoleta e usa-se .BR gettimeofday (2). POSIX does não especifica qualquer condição de erro. .SH "VEJA TAMBÉM" .BR ctime (3), .BR date (1), .BR ftime (3), .BR gettimeofday (2) .SH TRADUZIDO POR LDP-BR em 21/08/2000. \&\fR\&\f(CWAndré L. Fassone Canova (tradução)\fR \&\fR\&\f(CWxxxxxxxxxxxxxxxxxxxxxxxxx (revisão)\fR