hpux man page for ftime

Query: ftime

OS: hpux

Section: 2

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

ftime(2)							System Calls Manual							  ftime(2)

NAME
ftime - get date and time more precisely
SYNOPSIS
Remarks This facility is provided for backwards compatibility with Version 7 systems. Either or should be used in new programs.
DESCRIPTION
fills in a structure pointed to by its argument, as defined by /* * Structure returned by ftime system call */ struct timeb { time_t time; unsigned short millitm; short timezone; short dstflag; }; The structure contains the time in seconds since 00:00:00 UTC (Coordinated Universal Time), January 1, 1970, up to 1000 milliseconds of more-precise interval, the local timezone (measured in minutes of time westward from UTC), and a flag that, if nonzero, indicates that Day- light Saving time applies locally during the appropriate part of the year. Consult gettimeofday(2) for more details on the meaning of the timezone field. can fail for exactly the same reasons as gettimeofday(2).
WARNINGS
The millisecond value usually has a granularity greater than one due to the resolution of the system clock. Depending on any granularity (particularly a granularity of one) renders code non-portable.
SEE ALSO
date(1), gettimeofday(2), stime(2), time(2), ctime(3C).
STANDARDS CONFORMANCE
ftime(2)
Related Man Pages
ftime(3) - mojave
ftime(3) - redhat
ftime(3) - centos
ftime(3) - suse
ftime(3) - freebsd
Similar Topics in the Unix Linux Community
Help ... Java not reading correct AIX system time.
If condition not working
Oroboros 20080711 (Default branch)
Gettimeofday problem
JavaScript to get Timezone (IST, EST, etc)