Пример #1
0
 def serialize(self):
     return {
         'started': self.started,
         'finished': self.finished,
         'elapsed': humanizedelta(seconds=self.elapsed),
     }
Пример #2
0
 def serialize(self):
     return {
         'started':  self.started,
         'finished': self.finished,
         'elapsed':  humanizedelta(seconds=self.elapsed),
     }
Пример #3
0
 def __str__(self):
     return humanizedelta(seconds=self.elapsed)
Пример #4
0
 def __str__(self):
     return humanizedelta(seconds=self.elapsed)