FileInfo.getModificationDateTime

glib.date_time.DateTime getModificationDateTime()

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 [gio.types.FILE_ATTRIBUTE_TIME_MODIFIED]. If [gio.types.FILE_ATTRIBUTE_TIME_MODIFIED_USEC] is provided, the resulting #GDateTime will additionally have microsecond precision.

If nanosecond precision is needed, [gio.types.FILE_ATTRIBUTE_TIME_MODIFIED_NSEC] must be queried separately using [gio.file_info.FileInfo.getAttributeUint32].

Returns

modification time, or null if unknown