TIME(2) UNIX Programmer's Manual TIME(2) NAME time, ftime - get date and time SYNOPSIS #include time_t time((time_t *) 0) time_t time(tloc) time_t *tloc; #include #include ftime(tp) struct timeb *tp; DESCRIPTION _T_i_m_e returns the time since 00:00:00 GMT, Jan. 1, 1970, measured in seconds. If _t_l_o_c is nonnull, the return value is also stored in the place to which _t_l_o_c points. The _f_t_i_m_e entry fills in a structure pointed to by its argu- ment, as defined by <_s_y_s/_t_i_m_e_b._h>: /* * Structure returned by ftime system call */ struct timeb { time_t time; u_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 timezone (measured in minutes of time westward from Greenwich), and a flag that, if nonzero, indicates that Day- light Saving time applies locally during the appropriate part of the year. ERRORS _F_t_i_m_e will fail if: [EFAULT] _T_p points to an address outside the process's allocated address space. SEE ALSO date(1), stime(2), ctime(3) Printed 5/22/83 1 TIME(2) UNIX Programmer's Manual TIME(2) ASSEMBLER (ftime = 35.) sys ftime; bufptr (time = 13.; obsolete call) sys time (time since 1970 in r0-r1) Printed 5/22/83 2