from datetime import datetime


def print_weather_data(data, verbose):
    """Displays the weather data in human readable format.

    Args:
        data (dict): dictionary that contains the weather data.
        verbose (boolean): if `True`, more detail will be printed about
        the weather and the city.
    """

    info = f"""
    ------------------------------
    City        : {data['name']}
    Country     : {data['sys']['country']}"""
    if verbose:
        info += f"""
    Longitude   : {data['coord']['lon']}
    Latitude    : {data['coord']['lat']}
    Sunrise     : {datetime.fromtimestamp(data['sys']['sunrise']).time()}
    Sunset      : {datetime.fromtimestamp(data['sys']['sunset']).time()}"""

    info += f"""
    ------------------------------
    Temperature : {data['main']['temp']}"""
    if verbose:
        info += f"""
    Temp min    : {data['main']['temp_min']}
    Temp max    : {data['main']['temp_max']}"""

    info += f"""
    Pressure    : {data['main']['pressure']}
    Humidity    : {data['main']['humidity']}
    Wind speed  : {data['wind']['speed']}
    Wind deg    : {data['wind']['deg']}
    ------------------------------"""

    return info