Loading...
Logo
Processing Forum
Hello all.

I was just looking the twitter4j api, and I couldn't find how to search within a specific time frame (for example for the last three hours). I only found the setSince function that gets the date of the tweets.

query.setSince(2010-01-01);

So is it possible to filter a query with hours?

Thanks

Replies(1)

Hello,

no, it's not possible, because the Twitter API doesn't support hours:

Twitter4j is only a wrapper, which is dependent on that API.

But, maybe you can filter the result with "created_at", because it's a Data object:

Darius