localtime function in C?
The localtime function in C converts the calendar time pointed to by the timer into a broken-down time, expressed as local time. The localtime function is present in the <time.h> header file. Syntax of localtime: The prototype of the localtime () function is below: #include <time.h> struct tm *localtime(const…