mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
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.
This commit is contained in:
parent
03e3a0396e
commit
1015bfb6ba
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user