Method

GioFileInfoget_creation_date_time

Declaration

GDateTime*
g_file_info_get_creation_date_time (
  GFileInfo* info
)

Description

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

This requires the G_FILE_ATTRIBUTE_TIME_CREATED attribute. If G_FILE_ATTRIBUTE_TIME_CREATED_USEC is provided, the resulting GDateTime will have microsecond precision.

Available since:2.70

Return value

Returns: GDateTime
 

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