def get_utc_time_in_past(days):
        """Generating time by subtracting days from current UTC time."""
        now = datetime.datetime.utcnow()
        offset_time = now - datetime.timedelta(days=days)
        offset_time = offset_time.replace(tzinfo=datetime.timezone.utc)
        return offset_time.strftime("%Y-%m-%dT%H:%M:%S%z")
Generating time by subtracting days from current UTC time.
Solutions/MimecastAudit/Data Connectors/Helpers/date_helper.py