C POSIX library |
---|
utime.h is the header in the C POSIX library for the C programming language that facilitates the setting of file access and modification times.
int utime(const char *path, const struct utimbuf *times)
This function sets the access and modification times of the specified file.
The utime() function sets the access and modification times of the file named by the path argument.
Data types defined in the utime.h
header include:
struct utimbuf
time_t actime
access timetime_t modtime
modification timeThe times are measured in seconds since the Epoch.