logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface

Application Usage

       The utime() function only allows setting file timestamps to the nearest second.  Applications should  use
       the utimensat() function instead. See <sys/stat.h>.

Description

       The <utime.h> header shall declare the utimbuf structure, which shall include the following members:

           time_t    actime    Access time.
           time_t    modtime   Modification time.

       The times shall be measured in seconds since the Epoch.

       The <utime.h> header shall define the time_t type as described in <sys/types.h>.

       The  following  shall  be declared as a function and may also be defined as a macro. A function prototype
       shall be provided.

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

       Thefollowingsectionsareinformative.

Future Directions

       The <utime.h> header may be removed in a future version.

Name

       utime.h — access and modification times structure

Prolog

       This  manual  page  is part of the POSIX Programmer's Manual.  The Linux implementation of this interface
       may differ (consult the corresponding Linux manual page for details of Linux behavior), or the  interface
       may not be implemented on Linux.

Rationale

       None.

See Also

<sys_stat.h>, <sys_types.h>

       The System Interfaces volume of POSIX.1‐2017, futimens(), utime()

Synopsis

       #include <utime.h>

See Also