from datetime import datetime


def get_iso_format(time: datetime) -> str:
    """
    Returns a given datetime in iso format as string

    :param time:

    :return: .
    """
    return time.strftime('%Y-%m-%dT%H:%M:%SZ')