from datetime import datetime
import time


def datetime_from_utc_to_local(utc_datetime: datetime) -> datetime:
    """Converts a utc time to local time

    Parameters
    ----------
    utc_datetime : datetime
        The time in UTC

    Returns
    -------
    datetime
        The local time equivalent
    """
    now_timestamp = time.time()
    offset = datetime.fromtimestamp(now_timestamp) - datetime.utcfromtimestamp(now_timestamp)
    return utc_datetime + offset