ctime()

NAME

ctime() - transform binary date and time value to ASCII

SYNOPSIS

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

char * ctime (const time_t *clock)

DESCRIPTION

The function ctime(3) takes as an argument a time value representing the time in seconds since the Epoch (00:00:00 UTC, January 1, 1970; see time(2)).

Ctime(3) function adjusts the time value for the current time zone and returns a pointer to a 26-character string of the form:

Thu Nov 24 18:22:48 1986\n\0

All the fields have constant width.

SEE ALSO

date(1)

asctime(3)

difftime(3)

getenv(3)

gmtime(3)

localtime(3)

mktime(3)

time(2)