date and time created 90/05/12 15:47:39 by bostic
[unix-history] / usr / src / lib / libcompat / 4.1 / ftime.3
CommitLineData
969f1988
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
0eca0ee5 5.\" @(#)ftime.3 6.2 (Berkeley) %G%
969f1988 6.\"
0eca0ee5 7.TH FTIME 3C ""
969f1988
KM
8.UC 4
9.SH NAME
0eca0ee5 10ftime \- get date and time
969f1988
KM
11.SH SYNOPSIS
12.nf
969f1988
KM
13.B #include <sys/types.h>
14.B #include <sys/timeb.h>
0eca0ee5 15
969f1988
KM
16.B ftime(tp)
17.B struct timeb *tp;
18.fi
19.SH DESCRIPTION
ac4c1774 20.ft B
0eca0ee5
KB
21This interface is obsoleted by gettimeofday(2).
22.br
23It is available from the compatibility library, libcompat.
ac4c1774
KM
24.ft R
25.PP
969f1988
KM
26The
27.I ftime
0eca0ee5 28routine fills in a structure pointed to by its argument,
969f1988 29as defined by
ac4c1774 30.RI < sys/timeb.h >:
969f1988
KM
31.PP
32.ta .5i +\w'unsigned 'u
33.nf
34.so /usr/include/sys/timeb.h
35.fi
36.PP
37The structure contains the time since the epoch in seconds,
38up to 1000 milliseconds of more-precise interval,
39the local time zone (measured in minutes of time westward from Greenwich),
40and a flag that, if nonzero, indicates that
41Daylight Saving time applies locally during the appropriate part of the year.
42.SH "SEE ALSO"
0eca0ee5 43gettimeofday(2), settimeofday(2), time(2), ctime(3)