FTIME(2) — HP-UX
Series 200, 300, 800 Only
NAME
ftime − get date and time more precisely
SYNOPSIS
#include <sys/types.h>
#include <sys/timeb.h>
ftime(tp)
struct timeb *tp;
REMARKS
This facility is provided for backwards compatibility with Version 7 systems. Either time or gettimeofday should be used for all new code.
DESCRIPTION
Ftime entry fills in a structure pointed to by its argument, as defined by <sys/timeb.h>:
/*
* Structure returned by ftime system call
*/
struct timeb {
time_ttime;
unsigned short millitm;
shorttimezone;
shortdstflag;
};
The structure contains the time in seconds since 00:00:00 GMT, January 1, 1970, up to 1000 milliseconds of more-precise interval, the local timezone (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. Gettimeofday should be consulted for more details on the meaning of the timezone field.
This call can be accessed by giving the -lV7 option to ld(1).
Ftime can fail for exactly the same reasons as gettimeofday(2).
HARDWARE DEPENDENCIES
Series 500:
Ftime is not currently supported.
SEE ALSO
date(1), gettimeofday(2), stime(2), time(2), ctime(3C).
BUGS
The millisecond value usually has a granularity greater than one due to the resolution of the system clock. Depending on any granularity (particularly of one) will render code non-portable.
Hewlett-Packard Company — Version B.1, May 11, 2021