def diary_to_csv(entries):
    """Convert the diary to a CSV string"""
    entries = map(
        lambda entry :
        f"{entry['start'].isoformat()}Z,{entry['end'].isoformat()}Z,{entry['status']},{entry['comments']}",
        entries
    )
    return "Start,End,Status,Comments\n" + "\n".join(entries)