Method

GioFileInfoget_modification_date_time

since: 2.62

Declaration [src]

GDateTime*
g_file_info_get_modification_date_time (
  GFileInfo* info
)

Description [src]

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

It is an error to call this if the GFileInfo does not contain G_FILE_ATTRIBUTE_TIME_MODIFIED. If G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC is provided, the resulting GDateTime will additionally have microsecond precision.

If nanosecond precision is needed, G_FILE_ATTRIBUTE_TIME_MODIFIED_NSEC must be queried separately using g_file_info_get_attribute_uint32().

Available since: 2.62

Return value

Type: GDateTime

Modification time, or NULL if unknown.

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