code: def _FormatDateTime(self, event):
      
      try:
        return timelib.Timestamp.CopyToIsoFormat(
            event.timestamp, timezone=self._output_mediator.timezone,
            raise_error=True)
  
      except (OverflowError, ValueError) as exception:
        self._ReportEventError(event, (
            'unable to copy timestamp: {0!s} to a human readable date and time '
            'with error: {1!s}. Defaulting to: "0000-00-00T00:00:00"').format(
                event.timestamp, exception))
  
        return '0000-00-00T00:00:00'
docs: Formats the date and time in ISO 8601 format.
  
      Args:
        event (EventObject): event.
  
      Returns:
        str: date and time field.