O'Reilly logo
  • Ivan Petrov thinks this is interesting:

The utime() system call allows you to change a file’s access and modification timestamps:

#include <sys/types.h>                                       POSIX
#include <utime.h>

int utime(const char *filename, struct utimbuf *buf);

A struct utimbuf looks like this:

struct utimbuf {
    time_t actime;  /* access time */
    time_t modtime; /* modification time */
};

From

Cover of Linux® Programming by Example

Note

changing time stamp via a system call