#include <time.h>
struct tm *localtime (const time *timer);
struct tm *localtime
The localtime function converts the calendar time pointed to by timer into a broken-down time expressed as local time.
The localtime function returns a pointer to that object.