BookmarkSearchTime() has timeLimitUSec as 3rd argument. If i want to search all the bookmarks starting from the recording time what is the value i have to give to this argument?
Or there is any other function I can use to find all bookmarks?
BookmarkSearchTime() has timeLimitUSec as 3rd argument. If i want to search all the bookmarks starting from the recording time what is the value i have to give to this argument?
Or there is any other function I can use to find all bookmarks?
In order to find all bookmarks, you can use BookmarkSearchFromBookmark() which returns bookmarks after a known bookmark. Note, that you might need to call that function multiple times until there is no more bookmarks to return left. In addition, please keep in mind that bookmark search can be either forward or backward, depending on whether timeLimitUSec argument is positive or negative.
Hi Bien,
I want to search If there are any bookmarks created or not If there are any then I want list out created bookmarks.
In this case if no bookmark is created then how can i give the bookmark FQID to BookmarkSearchFromBookmark() function?
I am confused. Please advise.
Hi Anuroopa,
There is no method you can use to check if there are any bookmarks created. I suggest the following workaround to do that:
First, use BookmarkSearchTime() and manipulate time and timeLimitUSec parameters so that you check bookmarks in the past. For example, start with calling BookmarkSearchTime() with time=[now] and timeLimitUSec=[last 24 hours]. If that doesn’t return any bookmark, then call a method once again, this time with time=[now-24 hours] and timeLimitUSec=[last 24 hours]. Repeat that until you either get a bookmark or reach to the point in the past where you can assume that there are no bookmarks older than that.
Can we the get the bookmarks created on today, yesterday, last 7 days, 1 week.
what exactly need to be feed in timeLimitUSec?
Can we get more explaining on time and timeLimitUSec?
trying lot of trail and error methods but with no correct results.
You need to set both time and timeLimitUSec in order to get bookmarks created today, yesterday etc.
Please see a documentation for BookmarkSearchTime() method for an explanation of those parameters.