Computer Science


FTIME(3)            Linux Programmer's Manual            FTIME(3)

NAME
       ftime - return date and time

SYNOPSIS
       #include <sys/timeb.h>

       int ftime(struct timeb *tp);

DESCRIPTION
       Return  current  date and time in tp, which is declared as
       following:

                 struct timeb {
                      time_t   time;
                      unsigned short millitm;
                      short    timezone;
                      short    dstflag;
                 };

       The structure contains the time since the  epoch  in  sec-
       onds,  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.

RETURN VALUE
       This function always returns 0.

HISTORY
       The ftime function appeared in 4.2BSD.

CONFORMING TO
       BSD 4.2
       Under  BSD 4.3, this call is obsoleted by gettimeofday(2).

SEE ALSO
       time(2)

Linux                      24 July 1993                         1

Back to the index


Apply now!


Handbook

Postgraduate study options

Computer Science Blog



Please give us your feedback or ask us a question

This message is...


My feedback or question is...


My email address is...

(Only if you need a reply)

A to Z Directory | Site map | Accessibility | Copyright | Privacy | Disclaimer | Feedback on this page