Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
Guardian Native C Library Calls (f) ftime(3)
NAME
ftime - Gets date and time
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRTLSRL
G-series native OSS processes: /G/system/sysnn/zcrtlsrl
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcrtldll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycrtldll
SYNOPSIS
#include <sys/timeb.h>
int ftime(
struct timeb *tp);
PARAMETERS
tp Points to the timeb structure.
DESCRIPTION
The ftime( ) function sets the time and millitm members of the timeb structure pointed to by tp
to contain the seconds and milliseconds portions, respectively, of the current time in seconds
since (Coordinated Universal Time) January 1, 1970.
NOTES
For portability, applications should use the time() function instead.
The ftime( ) function can be called by native processes only.
RETURN VALUES
Upon successful completion, the ftime() function returns 0 (zero). Otherwise, -1 is returned.
RELATED INFORMATION
Functions: ctime(3), time(3).
STANDARDS CONFORMANCE
The ftime( ) function is specified in the XPG4 Version 2 specification.
527192-018 Hewlett-Packard Company 2−153