def get_between_times(self, t1, t2, target=None):
try:<EOL><INDENT>t1 = t1.isoformat()<EOL>t2 = t2.isoformat()<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT>myquery = self._get_time_query(t1, t2)<EOL>if target is not None:<EOL><INDENT>myquery["<STR_LIT:target>"] = target<EOL><DEDENT>self.create_files_request(myquery, fmt="<STR_LIT>")<EOL>self.unpack_json_response()<EOL>
Query for OPUS data between times t1 and t2.

Parameters
----------
t1, t2 : datetime.datetime, strings
    Start and end time for the query. If type is datetime, will be
    converted to isoformat string. If type is string already, it needs
    to be in an accepted international format for time strings.
target : str
    Potential target for the observation query. Most likely will reduce
    the amount of data matching the query a lot.

Returns
-------
None, but set's state of the object to have new query results stored
in self.obsids.