from datetime import datetime


def unixtime_to_isotime(unixtime, microseconds):
    """
    Converts a unix timestamp to a readable string timestamp
    :param unixtime:
    :param microseconds: If True microseconds will be visible
    :return:
    """
    return datetime.fromtimestamp(unixtime).strftime('%Y-%m-%dT%H:%M:%S' + microseconds * '.%f')