Пример #1
0
    def formatTime(self, record, datefmt=None):
        arrow_time = Arrow.fromtimestamp(record.created)

        if datefmt:
            arrow_time = arrow_time.format(datefmt)

        return str(arrow_time)
Пример #2
0
 def formatTime(self, record, datefmt=None):
     arrow_time = Arrow.fromtimestamp(record.created)
     return arrow_time.isoformat()