def utc_offset_by_timezone(timezone_name):
    """Returns the UTC offset of the given timezone in hours.

    Arguments
    ---------
    timezone_name: str
        A string with a name of a timezone.

    Returns
    -------
    int
        The UTC offset of the given timezone, in hours.
    """
    return int(pytz.timezone(timezone_name).utcoffset(
        utc_time()).total_seconds()/SECONDS_IN_HOUR)