7.23.3.2 The ctime function

Synopsis

1

#include <time.h>
char *ctime(const time_t *timer);

Description

2

The ctime function converts the calendar time pointed to by timer to local time in the form of a string. It is equivalent to

asctime(localtime(timer))

Returns

3

The ctime function returns the pointer returned by the asctime function with that broken-down time as argument.

Forward References