from datetime import datetime


def getDatetimeFromTimestamp(timestamp):
    """
    Produces a datetime object matching the timestamp
    @param timestamp: "YYYY.MM.DD.hr.min"
    @return a datetime object
    """
    times = [int(num) for num in timestamp.split(".")]
    return datetime(times[0],
                    times[1],
                    times[2],
                    hour=times[3],
                    minute=times[4])