@errors.callback
    def filter(self, result):
        log.debug("Converting date using format '%s'", self.arguments)

        try:
            return str(time.mktime(time.strptime(result, self.arguments)))
        except __HOLE__:
            if self.default is not None:
                return self.default
            else:
                raise errors.TestCritical(
                    "Failed to parse date with format '%s'" % self.arguments)
dataset/ETHPy150Open marineam/nagcat/python/nagcat/plugins/filter_time.py/DateFilter.filter