Time stamps can be read by using the stat() function. For more information... try man stat.
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
main()
{
int status = 0;
struct stat statData;
status = stat("MyFile.dat", &statData);
if(status == -1)
{
/*
*
* Some error occured, should use errno to check
* but for this example... just exit.
*
*/
fprintf(stderr, "stat() failed."

;
exit(1);
}
printf("Last Modification : %s",
ctime(&statData.st_mtime));
printf("Last Access : %s",
ctime(&statData.st_atime));
printf("Last Change Of File Status: %s",
ctime(&statData.st_ctime));
return 0;
}