time_t is deprecated due to the year 2038 problem.
BookmarkFile.setVisited
void setVisited(string uri, long 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.bookmark_file.BookmarkFile.getApplicationInfo] or by the default application for the bookmark's MIME type, retrieved using [glib.bookmark_file.BookmarkFile.getMimeType]. Changing the "visited" time does not affect the "modified" time.
Parameters
uri | a valid URI |
visited | a timestamp or -1 to use the current time |
Deprecated
Use [glib.bookmark_file.BookmarkFile.setVisitedDateTime] instead, as