def _get_commit_time(self, index):
        date = getattr(self, 'date', None)

        if date and date in self.repo.commits:
            return self.repo.commits[date][index].timestamp

        return int(time.time())
dataset/ETHPy150Open PressLabs/gitfs/gitfs/views/history.py/HistoryView._get_commit_time/original