GLib.BookmarkFile.prototype.set_visited

function set_visited(uri: String, visited: Number(glong)): void {
    // Gjs wrapper for g_bookmark_file_set_visited()
}
  

Sets the time the bookmark for uri was last visited.

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

The "visited" time should only be set if the bookmark was launched, either using the command line retrieved by GLib.BookmarkFile.prototype.get_app_info or by the default application for the bookmark's MIME type, retrieved using GLib.BookmarkFile.prototype.get_mime_type. Changing the "visited" time does not affect the "modified" time.

Since 2.12

uri

a valid URI

visited

a timestamp or -1 to use the current time