Tuesday, August 18, 2009 at 7:35 PM.

photoFanSuite.flickrToTwitter.howManyPicsSince

on howManyPicsSince (marktime) {
	<<Changes
		<<10/8/07; 1:07:51 PM by DW
			<<Created. How many pics has the user posted since marktime.
	local (ct = 0, i, adrhistory);
	for i = sizeof (user.photoFan.prefs.flickrToTwitter.history) downto 1 {
		adrhistory = @user.photoFan.prefs.flickrToTwitter.history [i];
		if adrhistory^.when < marktime {
			break};
		ct++};
	return (ct)};
bundle { //test code
	dialog.alert (howManyPicsSince (clock.now () - (24 * 60 * 60)))}



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.