*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> ftime (3)              
Title
Content
Arch
Section
 

FTIME(3)

Contents


NAME    [Toc]    [Back]

     ftime - get date and time

SYNOPSIS    [Toc]    [Back]

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

     int
     ftime(struct timeb *tp);

DESCRIPTION    [Toc]    [Back]

     This interface  is  obsoleted  by  gettimeofday(2).   It  is
available from the
     compatibility library, libcompat.

     The  ftime()  routine fills in a structure pointed to by its
argument, as
     defined by <sys/timeb.h>:

           /*
            * 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  Daylight Saving time applies locally during
the appropriate
 part of the year.

SEE ALSO    [Toc]    [Back]

      
      
     gettimeofday(2), settimeofday(2), ctime(3), time(3)

HISTORY    [Toc]    [Back]

     The ftime function appeared in 4.2BSD.

OpenBSD      3.6                           June      4,      1993
[ Back ]
 Similar pages
Name OS Title
gettimeofday Tru64 Gets and sets date and time and converts time between timeval and timeval64
TIMEVAL64TO32 Tru64 Gets and sets date and time and converts time between timeval and timeval64
TIMEVAL32TO64 Tru64 Gets and sets date and time and converts time between timeval and timeval64
gettimeofday64 Tru64 Gets and sets date and time and converts time between timeval and timeval64
settimeofday Tru64 Gets and sets date and time and converts time between timeval and timeval64
settimeofday64 Tru64 Gets and sets date and time and converts time between timeval and timeval64
ftime Tru64 Gets and sets date and time and converts time between timeval and timeval64
ntp_gettime Tru64 Get the date, time, and kernel time error values
ntpdate Tru64 set the date and time via NTP (Network Time Protocol)
ntpdate FreeBSD set the date and time via NTP
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service