Hi guys,<br>I have used the stat() function for "file.txt" to get one of its variables (st_mtime) - showing when file was last modified in seconds since Jan 1, 1970 00:00:00UTC<br><br>Because it is in seconds I cannot see what the Day,Month,Year...etc.<br>Is their a function that converts (seconds) to (DATE)<br><br>thanks,<br>Anna<br><br>#include <stdio.h><br>#include <time.h><br><br>void main()<br>{<br>struct stat s;<br><br>stat("file.txt",&s);<br>printf("\nTime last modified: %d",s.st_mtime);<br>}<br>