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

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

FTIME(3)

Contents


NAME    [Toc]    [Back]

     ftime - get date and time

LIBRARY    [Toc]    [Back]

     Compatibility Library (libcompat, -lcompat)

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.

     Note: time zone information is no longer provided by this interface.  See
     localtime(3) for information on how to retrieve it.

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

           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 timezone and dstflag fields
     are provided for source compatibility, but are always zero.

SEE ALSO    [Toc]    [Back]

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

HISTORY    [Toc]    [Back]

     The ftime() function appeared in 4.1BSD.

BSD                              June 4, 1993                              BSD
[ 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