4.3BSD-Reno/share/man/cat3/ftime.0
FTIME(3C) 1989 FTIME(3C)
NNAAMMEE
ftime - get date and time
SSYYNNOOPPSSIISS
##iinncclluuddee <<ssyyss//ttyyppeess..hh>>
##iinncclluuddee <<ssyyss//ttiimmeebb..hh>>
ffttiimmee((ttpp))
ssttrruucctt ttiimmeebb **ttpp;;
DDEESSCCRRIIPPTTIIOONN
TThhiiss iinntteerrffaaccee iiss oobbssoolleetteedd bbyy ggeettttiimmeeooffddaayy((22))..
IItt iiss aavvaaiillaabbllee ffrroomm tthhee ccoommppaattiibbiilliittyy lliibbrraarryy,, lliibbccoommppaatt..
The _f_t_i_m_e routine fills in a structure pointed to by its
argument, as defined by <_s_y_s/_t_i_m_e_b._h>:
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* @(#)timeb.h7.1 (Berkeley) 6/4/86
*/
/*
* Structure returned by ftime system call
*/
struct timeb
{
time_t time;
unsigned short millitm;
short timezone;
short dstflag;
};
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 Day-
light Saving time applies locally during the appropriate
part of the year.
SSEEEE AALLSSOO
gettimeofday(2), settimeofday(2), time(2), ctime(3)
Printed 7/27/90 May 1