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)
def _name(self): """Define object name.""" return "{0} {1} {2}".format( self._camera.name, pretty_timestamp(self.created_at), self._attrs.get('mediaDuration'))