

These structures are used in the 32-bit and 64-bit specific versions of this function. Specific versions of the _utimbuf structure ( _utimbuf32 and _utimbuf64) are defined using the 32-bit and 64-bit versions of the time type.

The structure has the following fields, which are both of type time_t: Field The _utimbuf structure stores file access and modification times used by _utime to change file-modification dates. Otherwise, times must point to a structure of type _utimbuf, defined in SYS\UTIME.H. If times is a NULL pointer, the modification time is set to the current local time.
UTIME STOCKTWITS WINDOWS
In the Windows operating system, you can change the access time and the modification time in the _utimbuf structure. The process must have write access to the file in order to change the time. The _utime function sets the modification time for the file specified by filename. _utime64 or _wutime64 always use the 64-bit time type, so these functions always support the later end date. _utime32 or _wutime32 use a 32-bit time type regardless of whether _USE_32BIT_TIME_T is defined, and always have the earlier end date. If _USE_32BIT_TIME_T is defined to force the old behavior, the end date is 23:59:59 January 18, 2038, UTC. _utime and _wutime use a 64-bit time value, so the end date is 23:59:59, December 31, 3000, UTC. The date can be changed for a file if the change date is after midnight, January 1, 1970, and before the end date of the function used. Too many open files (the file must be opened to change its modification time)įor more information about return codes, see errno, _doserrno, _sys_errlist, and _sys_nerr. Path specifies directory or read-only file If execution is allowed to continue, these functions return -1, and errno is set to one of the following values: errno value If an invalid parameter is passed, the invalid parameter handler is invoked, as described in Parameter validation. Return valueĮach of these functions returns 0 if the file-modification time was changed. Pointer to a string that contains the path or filename.
