from datetime import datetime


def dict_to_datetime(datetime_dict):
    """Turns a JSON object that keeps track of a datetime's information
    back into a datetime.datetime object
    :param datetime_dict: A JSON object to turn into a datetime object

    :rtype: datetime
    """

    return datetime(
        datetime_dict["year"], datetime_dict["month"], datetime_dict["day"],
        datetime_dict["hour"], datetime_dict["minute"], datetime_dict["second"]
    )