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

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

FTIME(3)

Contents


NAME    [Toc]    [Back]

       ftime - return date and time

SYNOPSIS    [Toc]    [Back]

       #include <sys/timeb.h>

       int ftime(struct timeb *tp);

DESCRIPTION    [Toc]    [Back]

       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 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.

RETURN VALUE    [Toc]    [Back]

       This function always returns 0.

BUGS    [Toc]    [Back]

       Under  libc4  and libc5 the millitm field is meaningful.  But glibc2 is
       buggy and returns 0 there; glibc 2.1.1 is correct again.

HISTORY    [Toc]    [Back]

       The ftime function appeared in 4.2BSD.

CONFORMING TO    [Toc]    [Back]

       BSD 4.2

NOTE    [Toc]    [Back]

       This call is obsoleted by gettimeofday(2).

SEE ALSO    [Toc]    [Back]

      
      
       time(2)



Linux				  1993-07-24			      FTIME(3)
[ Back ]
 Similar pages
Name OS Title
idate IRIX return date or time in numerical form
fdate IRIX return date and time in an ASCII string
TIMEVAL64TO32 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
gettimeofday 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
TIMEVAL32TO64 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
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service