A quick test program:
Code:
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <time.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
struct stat tmp;
char buffer[50];
stat(argv[1], &tmp);
strftime(buffer, 50, "Modification time: %Y-%m-%d %T %z\n", localtime(&(tmp.st_mtime)));
puts(buffer);
}