Method

GioFileInfoget_modification_date_time

Declaration

GDateTime*
g_file_info_get_modification_date_time (
  GFileInfo* info
)

Description

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

This requires the G_FILE_ATTRIBUTE_TIME_MODIFIED attribute. If G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC is provided, the resulting GDateTime will have microsecond precision.

Available since:2.62

Return value

Returns: GDateTime
 

Modification 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.