ftime()

get date and time 

Function


SYNOPSIS

#include <sys/timeb.h>

int ftime(struct timeb *tp);


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 00:00:00 UTC (Coordinated Universal Time), January 1, 1970. The contents of the timezone and dstflag members of tp after a call to ftime() are unspecified.


PARAMETERS

tp 

Points to the timeb structure that is to receive the current time information.


RETURN VALUES

The ftime() function always returns 0.


CONFORMANCE

UNIX 98.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
ctime(), gettimeofday(), time()


PTC MKS Toolkit 10.4 Documentation Build 39.