Exemplo n.º 1
0
 def created_at_pretty(self, date_format=None):
     """Return pretty timestamp."""
     if date_format:
         return pretty_timestamp(self.created_at, date_format=date_format)
     return pretty_timestamp(self.created_at)
Exemplo n.º 2
0
 def _name(self):
     """Define object name."""
     return "{0} {1} {2}".format(
         self._camera.name,
         pretty_timestamp(self.created_at),
         self._attrs.get('mediaDuration'))