GLib.BookmarkFile.prototype.set_modified

function set_modified(uri: String, modified: Number(glong)): void {
    // Gjs wrapper for g_bookmark_file_set_modified()
}
  

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 GLib.BookmarkFile that modifies a bookmark also changes the modification time, except for GLib.BookmarkFile.prototype.set_visited.

Since 2.12

uri

a valid URI

modified

a timestamp or -1 to use the current time