4.3BSD-Reno/src/lib/libcompat/4.1/ftime.3

Compare this file to the similar file:
Show the results in this format:

.\" Copyright (c) 1980 Regents of the University of California.
.\" All rights reserved.  The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\"	@(#)ftime.3	6.2 (Berkeley) 5/17/89
.\"
.TH FTIME 3C "May 17, 1989"
.UC 4
.SH NAME
ftime \- get date and time
.SH SYNOPSIS
.nf
.B #include <sys/types.h>
.B #include <sys/timeb.h>

.B ftime(tp)
.B struct timeb *tp;
.fi
.SH DESCRIPTION
.ft B
This interface is obsoleted by gettimeofday(2).
.br
It is available from the compatibility library, libcompat.
.ft R
.PP
The
.I ftime
routine fills in a structure pointed to by its argument,
as defined by
.RI < sys/timeb.h >:
.PP
.ta .5i +\w'unsigned 'u
.nf
.so /usr/include/sys/timeb.h
.fi
.PP
The structure contains the time since the epoch in seconds,
up to 1000 milliseconds of more-precise interval,
the local time zone (measured in minutes of time westward from Greenwich),
and a flag that, if nonzero, indicates that
Daylight Saving time applies locally during the appropriate part of the year.
.SH "SEE ALSO"
gettimeofday(2), settimeofday(2), time(2), ctime(3)