def parse(self, format=None, tz_in=None, tz_out=None):
        # 'unix'
        if format == "unix":
            return str(time.time()).split('.')[0]

        # anything else
        dt = self.date_gen(tz_in, tz_out)
        text = self.date_format(dt, format)

        # Fix potential unicode/codepage issues
        if ST2 and isinstance(text, str):
            try:
                text = text.decode(locale.getpreferredencoding())
            except __HOLE__:
                text = text.decode('utf-8')

        return text
dataset/ETHPy150Open FichteFoll/InsertDate/format_date/__init__.py/FormatDate.parse