Copyright (C) 2000-2012 |
Manpages FTIMESection: Linux Programmer's Manual (3)Updated: 1993-07-24 Index Return to Main Contents NAMEftime - return date and timeSYNOPSIS#include <sys/timeb.h>DESCRIPTIONReturn 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 VALUEThis function always returns 0.BUGSUnder libc4 and libc5 the millitm field is meaningful. But glibc2 is buggy and returns 0 there; glibc 2.1.1 is correct again.HISTORYThe ftime function appeared in 4.2BSD.CONFORMING TOBSD 4.2NOTEThis call is obsoleted by gettimeofday(2).SEE ALSOtime(2)
IndexThis document was created by man2html, using the manual pages. Time: 15:14:43 GMT, January 15, 2025 |