GNU/Linux |
RedHat 5.2(Apollo) |
|
![]() |
ftime(3) |
![]() |
ftime − return date and time
#include <sys/timeb.h>
int ftime(struct timeb *tp);
Return current date and time in tp, which is declared as following:
struct timeb {
time_t time; | ||
unsigned short millitm; | ||
short timezone; | ||
short dstflag; |
};
This function always returns 0.
Under Linux, this function is implemented in a compatibility library instead of in the kernel.
V7, BSD 4.3
Under BSD 4.3, this call is obsoleted by
gettimeofday(2).
time(2)
![]() |
ftime(3) | ![]() |