Gio.FileInfo.get_creation_date_time

### Method

# Gio FileInfoget_creation_date_time

since: 2.70

#### Declaration [src]

    GDateTime*
    g_file_info_get_creation_date_time (
      GFileInfo* info
    )

#### Description [src]

Gets the creation 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_CREATED`. If `G_FILE_ATTRIBUTE_TIME_CREATED_USEC` is provided, the resulting `GDateTime` will additionally have microsecond precision.

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

Available since: 2.70

#### Return value

Type: `GDateTime`

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