[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    ftime(3C) manual page Table of Contents

Name

ftime - get date and time

Synopsis


#include <sys/types.h>
#include <sys/timeb.h>

int ftime(struct timeb *tp);

Description

The ftime() entry fills in a structure pointed to by its argument. The structure is defined in <sys/timeb.h> and contains the following members:

time_ttime;
unsigned shortmillitm;
shorttimezone;
shortdstflag;

The structure contains the time since the epoch in seconds, up to 1000 milliseconds of more-precise interval, the local time zone, and a flag that, if nonzero, indicates that Daylight Saving time applies locally during the appropriate part of the year.

The contents of the timezone and dstflag members of tp after a call to ftime() are unspecified.

See Also

date(1) , time(2) , gettimeofday(3C) , ctime(3C) , timezone(4)


Table of Contents