1 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date. The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein. The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" Modified by Michael Haardt <u31b3hs@pool.informatik.rwth-aachen.de>
26 .\" Modified Sat Jul 24 14:13:40 1993 by Rik Faith <faith@cs.unc.edu>
27 .\" Additions by Joseph S. Myers <jsm28@cam.ac.uk>, 970909
29 .\" Translated into German by Ralf Demmer, Translation & Consulting
30 .\" rdemmer@rdemmer.de, http://www.rdemmer.de, Berlin, 24.05.99
32 .TH TIME 2 "27. Mai 1999" "Linux 2.0.30" "Systemaufrufe"
34 time \- Zeit in Sekunden abfragen
38 .BI "time_t time(time_t *" t );
41 gibt die Zeit seit Beginn der "Computer-Epoche" (00:00:00 UTC, January 1, 1970)
46 nicht NULL, wird auch der Rückgabewert im Speicher an der durch
48 angegebenen Stelle abgelegt.
50 Bei Erfolg wird die Zeit seit 1.1.1970, 00:00 Uhr in Sekunden zurückgegeben.
51 Tritt ein Fehler auf, wird ((time_t)\-1) zurückgegeben und
58 zeigt außerhalb Ihres verfügbaren Speicherbereichs.
61 Sekunden seit Anfang der "Computer-Epoche" als Wert der als Anzahl
62 der Sekunden zwischen einem bestimmten Zeitpunkt und dem Anfang
63 der "Computer-Epoche" interpretiert wird. Dabei wird eine Umrechnungsformel
64 von der UTC auf Basis der ungenauen Annahme, dass Schaltsekunden ignoriert
65 werden und alle durch 4 teilbaren Jahre Schaltjahre sind. Dieser Wert ist
66 nicht die Anzahl der Sekunden zwischen diesem bestimmten Zeitpunkt und
67 dem Anfang der "Computer-Epoche", wegen der Schaltsekunden und weil die Uhren
68 nicht mit einer vorgegebenen Referenz synchronisiert werden müssen. Das
69 Ziel dieser Festlegung ist eine konsistente Interpretation des Sekundenwertes
70 seit Anfang der "Computer-Epoche". Siehe hierzu auch POSIX.1 Anhang B 2.2.2,
71 für weitere Erläuterungen.
73 SVr4, SVID, POSIX, X/OPEN, BSD 4.3
75 Unter BSD 4.3 ist dieser Aufruf durch
78 POSIX legt keine Fehlerbedingungen fest.