code: def timestamp(self, timestamp):
          
          if timestamp is None:
              self._timestamp = datetime.utcnow()
          elif isinstance(timestamp, datetime):
              self._timestamp = timestamp
          else:
              self._timestamp = datetime.strptime(timestamp, fmt)
docs: Entry timestamp as datetime.