from datetime import datetime


def get_updated_datetime(dashboard_info):
    """
    Get a datetime representing when the dashboard was last updated:
    :param dashboard_info: Dashboard data from the Grafana API
    :return: datetime
    """
    last_updated = dashboard_info['meta']['updated']
    return datetime.strptime(last_updated, '%Y-%m-%dT%H:%M:%SZ')