Mongodump --query not able to filter using timestamp

A bit late but managed to query using shell date like this

–query “{“TABLENAME”:{”$gt":{"$date":"date -v-1H +"%Y-%m-%dT%H:%M:%S%z""}}}"

where “1H” stands for an hour, “1d” for days