Exemplo n.º 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)
Exemplo n.º 2
0
 def formatTime(self, record, datefmt=None):
     arrow_time = Arrow.fromtimestamp(record.created)
     return arrow_time.isoformat()