def initialize_new_checkpoint(self, checkpoint):
        """Initialize new interval of checkpoint.

        Args:
            checkpoint (json): checkpoint object

        Returns:
            json : Updated checkpoint.
        """
        try:
            utc_timestamp = datetime.datetime.utcnow().replace(tzinfo=datetime.timezone.utc).isoformat()
            start_date = checkpoint["first_endtime"]
            mimecast_start_date = datetime.datetime.strptime(start_date, TIME_FORMAT) + datetime.timedelta(seconds=1)
            checkpoint["start_time"] = mimecast_start_date.strftime(TIME_FORMAT)
            end_date = datetime.datetime.fromisoformat(utc_timestamp) - datetime.timedelta(seconds=15)
            mimecast_end_date = end_date.strftime(TIME_FORMAT)
            checkpoint["end_time"] = mimecast_end_date
            checkpoint["first_endtime"] = mimecast_end_date
            return checkpoint
        except Exception as e:
            logging.error("Unknown Exception raised while initializing new checkpoint.")
            raise e
Initialize new interval of checkpoint.

        Args:
            checkpoint (json): checkpoint object

        Returns:
            json : Updated checkpoint.
        
Solutions/MimecastAudit/Data Connectors/Helpers/checkpoint_helper.py