Package: gio

Function gio:file-info-access-date-time

Lambda List

gio:file-info-access-date-time (info)

Syntax

(g:file-info-access-date-time info) => time
(setf (g:file-info-access-date-time info) time)

Arguments

info -- a g:file-info instance
time -- an unsigned integer for the universal time

Details

The g:file-info-access-date-time function gets the access time of the current info and returns it as a Lisp universal time. It is an error to call this function if the g:file-info instance does not contain the G_FILE_ATTRIBUTE_TIME_ACCESS attribute. If the G_FILE_ATTRIBUTE_TIME_ACCESS_USEC attribute is provided, the resulting universal time will additionally have microsecond precision.

If nanosecond precision is needed, the G_FILE_ATTRIBUTE_TIME_ACCESS_NSEC attribute must be queried separately using the g:file-info-attribute-uint32 function.

The (setf g:file-info-access-date-time) function sets the G_FILE_ATTRIBUTE_TIME_ACCESS and G_FILE_ATTRIBUTE_TIME_ACCESS_USEC attributes in the file info to the given date/time value. The G_FILE_ATTRIBUTE_TIME_ACCESS_NSEC attribute will be cleared.

Since 2.70
 

See also

#2025-06-16