FileInfo.getCreationDateTime

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 gio.file_info.FileInfo.getAttributeUint32.

class FileInfo
getCreationDateTime
()

Return Value

Type: glib.date_time.DateTime

creation time, or null if unknown