struct tm* localtime

struct tm* localtime(const time_t *timer)

The localtime function converts the time stamp pointed to by timer into broken-down time, expressed as Local time.