#include <sys/time.h> int utimes(const char *file, struct timeval tvp[2]);
This function sets the timestamp of the file to tvp[1].tv_sec
.
Zero on success, nonzero on failure.
not ANSI, not POSIX
time_t now; struct timeval tvp[2]; time(&now); tvp[0].tv_sec = now + 100; utimes("foo.dat", tvp);
Go to the first, previous, next, last section, table of contents.