REST API search query to list tickets created 'x' days/minutes ago

Hello !

I’m using Curl and the REST interface to query the RT Database.I can’t seem
to build a query to use with Curl,to list out all Tickets created ‘x’ days
ago or ‘x’ minutes ago.Any pointers will be greatly appreciated.

This is what my query looks like.

Doesn’t Work
$curl “https://localhost/REST/1.0/search/ticket?query=Created>'2 days
ago’ANDQueue=‘myQueue’” -b /tmp/rt.cookie

Works.List all RTs created on this date
$ curl -s -S
-b /tmp/rt.cookie

Works.List all RTs created after the specified date
$ curl -s -S
-b /tmp/rt.cookie

View this message in context: