set_visited


Description:

[ Version ( deprecated_since = "2.66" , replacement = "set_visited_date_time" ) ]
public void set_visited (string uri, time_t visited)

Warning: set_visited is deprecated since 2.66. Use set_visited_date_time.

Sets the time the bookmark for uri was last visited.

Note:

Use set_visited_date_time instead, as `time_t` is deprecated due to the year 2038 problem.

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 get_application_info or by the default application for the bookmark's MIME type, retrieved using get_mime_type. Changing the "visited" time does not affect the "modified" time.

Parameters:

this

a BookmarkFile

uri

a valid URI

visited

a timestamp or -1 to use the current time