Function

GLib-2.0GLibutimeSince 2.18

  • A wrapper for the POSIX utime() function. The utime() function sets the access and modification timestamps of a file.

    See your C library manual for more details about how utime() works on your system.

    Parameters

    • filename: string

      a pathname in the GLib file name encoding (UTF-8 on Windows)

    • Optionalutb: any

      a pointer to a struct utimbuf.

    Returns number

    0 if the operation was successful, -1 if an error occurred

    2.18