.\" Copyright (c) 1980, 1991 Regents of the University of California. .\" All rights reserved. .\" .\" %sccs.include.redist.man% .\" .\" @(#)ftime.3 6.3 (Berkeley) 04/19/91 .\" .Dd .Dt FTIME 3 .Os BSD 4 .Sh NAME .Nm ftime .Nd get date and time .Sh SYNOPSIS .Fd #include .Fd #include .Ft struct timeb * .Fn ftime "struct timeb *tp" .Sh DESCRIPTION .Bf -symbolic This interface is obsoleted by gettimeofday(2). .Pp It is available from the compatibility library, libcompat. .Ef .Pp The .Fn ftime routine fills in a structure pointed to by its argument, as defined by .Aq Pa sys/timeb.h : .Bd -literal -offset indent /* * Structure returned by ftime system call */ struct timeb { time_t time; unsigned short millitm; short timezone; short dstflag; }; .Ed .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 .Xr gettimeofday 2 , .Xr settimeofday 2 , .Xr time 2 , .Xr ctime 3 .Sh HISTORY The .Nm function appeared in .Bx 4.2 .