setAdded

fun setAdded(uri: String, added: Long)(source)

⚠️ Deprecated ⚠️

This is deprecated since version 2.66.

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

Sets the time the bookmark for @uri was added into @bookmark.

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

Since

2.12

Parameters

uri

a valid URI

added

a timestamp or -1 to use the current time