Method

GioFileInfoget_access_date_time

Declaration

GDateTime*
g_file_info_get_access_date_time (
  GFileInfo* info
)

Description

Gets the access time of the current info and returns it as a GDateTime.

This requires the G_FILE_ATTRIBUTE_TIME_ACCESS attribute. If G_FILE_ATTRIBUTE_TIME_ACCESS_USEC is provided, the resulting GDateTime will have microsecond precision.

Available since:2.70

Return value

Returns: GDateTime
 

Access time, or NULL if unknown.

 The caller of the method takes ownership of the data, and is responsible for freeing it.
 The return value can be NULL.