I was playing with the time.h
file in C that helps us with time/day functions.
I came across:
struct tm * _Cdecl localtime(const time_t
The man page says:
The return value points to a statically allocated struct which might be overwritten by subsequent calls to any of the date and time functions.
Also:
The localtime_r() function does the same, but stores the data in a user-supplied struct. It need not set tzname, timezone, and daylight.