ccttiimmee() -- Time Function (libc)

Convert system time to an ASCII string
#iinncclluuddee <ttiimmee.hh>
#iinncclluuddee <ssyyss/ttyyppeess.hh>
cchhaarr *ccttiimmee(_t_i_m_e_p)
ttiimmee_tt *_t_i_m_e_p;

ccttiimmee() converts the system's internal time  into a string that can be read
by humans.  It  takes a pointer to the internal  time type ttiimmee_tt, which is
defined in the header file <ssyyss/ttyyppeess.hh>, and returns a fixed-length string
of the form:

    Thu Mar  7 11:12:14 1989\n

ccttiimmee()  is implemented  as a  call to  llooccaallttiimmee() followed  by a  call to
aassccttiimmee().

_E_x_a_m_p_l_e
For another example of this function, see the entry for aassccttiimmee().

#include <time.h>
#include <sys/types.h>

main()
{
    time_t t;

    time(&t);
    printf(ctime(&t));
}

_S_e_e _A_l_s_o
lliibbcc, ttiimmee [oovveerrvviieeww], ttiimmee.hh
ANSI Standard, section 7.12.3.2
POSIX Standard, section 8.1

_N_o_t_e_s
ccttiimmee()  returns a  pointer to  a  statically allocated  data area  that is
overwritten by successive calls.
