[glib: 1/2] fileinfo: Mention that usec mtimes are set



commit 1015bfb6bacd72aea7cf90e0e37e0e130679e5fb
Author: Matthew Leeds <mwl458 gmail com>
Date:   Wed Sep 25 13:43:51 2019 +0000

    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
  */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]