added timedelta to _stringify_query()