I have a unix time stamp as follows
char timestamp[100];
strcpy(timestamp,"701729943");
time_t timeval=ctime(timestamp);
printf("Time %s",timeval);
If the check the value of the timestamp in the online unix time convertor it shows 27th march 1992, but if the check the program's output it shows feb 25,1996. How to rectify this?
Copyright Notice:Content Author:「Punkster」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/28179897/converting-unix-timestamp-using-ctime