from datetime import datetime


def convert_to_12hour_clock(value):
    """
    Change 24 hour clock to 12 hour clock.
    """

    twelve_hour_value = value.strftime("%I:%M")
    datetime_value = datetime.strptime(twelve_hour_value, "%I:%M")
    return datetime_value