setModified

fun setModified(uri: String, modified: Long)(source)

⚠️ Deprecated ⚠️

This is deprecated since version 2.66.

Use g_bookmark_file_set_modified_date_time() instead, as time_t is deprecated due to the year 2038 problem.

Sets the last time the bookmark for @uri was last modified.

If no bookmark for @uri is found then it is created.

The "modified" time should only be set when the bookmark's meta-data was actually changed. Every function of #GBookmarkFile that modifies a bookmark also changes the modification time, except for g_bookmark_file_set_visited_date_time().

Since

2.12

Parameters

uri

a valid URI

modified

a timestamp or -1 to use the current time