def _TimeToString(datetime):
    """Converts a datetime object into a string
    adapted from M-LOOP: mloop.utilities

    Args:
        datetime (datetime): datetime object (e.g. datetime.datetime.now())

    Returns:
        str: date time as 'yyyy-mm-dd_hh-mm'
    """
    return datetime.strftime("%Y-%m-%d_%H-%M")