C Programming/POSIX Reference/utime.h
Jump to navigation
Jump to search
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.
Member functions[edit | edit source]
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.
Member types[edit | edit source]
Data types defined in the utime.h
header include:
struct utimbuf
time_t actime
access timetime_t modtime
modification time
The times are measured in seconds since the Epoch.