From 1015bfb6bacd72aea7cf90e0e37e0e130679e5fb Mon Sep 17 00:00:00 2001 From: Matthew Leeds Date: Wed, 25 Sep 2019 13:43:51 +0000 Subject: [PATCH] fileinfo: Mention that usec mtimes are set g_file_info_set_modification_time() and g_file_info_set_modification_date_time() set the G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC attribute in addition to G_FILE_ATTRIBUTE_TIME_MODIFIED, so microsecond precision is available when provided by the caller, so mention both attributes in the docs. --- gio/gfileinfo.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gio/gfileinfo.c b/gio/gfileinfo.c index ab4cbea96..dd505df4c 100644 --- a/gio/gfileinfo.c +++ b/gio/gfileinfo.c @@ -2163,8 +2163,9 @@ g_file_info_set_size (GFileInfo *info, * @info: a #GFileInfo. * @mtime: a #GTimeVal. * - * Sets the %G_FILE_ATTRIBUTE_TIME_MODIFIED attribute in the file - * info to the given time value. + * Sets the %G_FILE_ATTRIBUTE_TIME_MODIFIED and + * %G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC attributes in the file info to the + * given time value. * * Deprecated: 2.62: Use g_file_info_set_modification_date_time() instead, as * #GTimeVal is deprecated due to the year 2038 problem. @@ -2200,8 +2201,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS * @info: a #GFileInfo. * @mtime: (not nullable): a #GDateTime. * - * Sets the %G_FILE_ATTRIBUTE_TIME_MODIFIED attribute in the file - * info to the given date/time value. + * Sets the %G_FILE_ATTRIBUTE_TIME_MODIFIED and + * %G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC attributes in the file info to the + * given date/time value. * * Since: 2.62 */