2 messages in com.googlegroups.google-base-data-apiFilter Search Results by updated date...
FromSent OnAttachments
Shuki22 May 2007 11:06 
Jeff S24 May 2007 18:13 
Subject:Filter Search Results by updated date (Java API)
From:Shuki (shuk@gmail.com)
Date:05/22/2007 11:06:09 AM
List:com.googlegroups.google-base-data-api

Is there a way to use the Java API and only get the results from the last week? I tried using the methods in the API but no luck so far.

GoogleBaseService javadocs [see here: http://code.google.com/apis/gdata/javadoc/com/google/api/gbase/client/GoogleBaseService.html#query(com.google.gdata.client.Query, com.google.gdata.data.DateTime) ]

<code> DateTime lastWeek = new DateTime(new Date(System.currentTimeMillis() - (1000L * 60L * 60L * 24L * 7L))); System.out.println(""+lastWeek.toString());

GoogleBaseQuery gbsQuery.setGoogleBaseQuery("tv [item type: Products]"); GoogleBaseService service = //... set up your service

GoogleBaseFeed googleBaseFeed = service.query(gbsQuery, lastWeek); </code>