'This function takes the lookback window and creates a string
representation of the past few hours, to feed to qacct to
limit the dataset qacct returns.'

def get_qatime(self, now):

    if self.stat.is_jobstats_empty():
        log.info('Loading    full    job    history')
        temp_lookback_window = ((self.lookback_window * 60) * 60)
    else:
        temp_lookback_window = self.polling_interval
    log.debug(('getting    past    %d    seconds    worth    of    job    history' % temp_lookback_window))
    now = (now - datetime.timedelta(seconds=(temp_lookback_window + 1)))
    return now.strftime('%Y%m%d%H%M')
